Strict mode
This commit is contained in:
parent
0e2cc5c3cf
commit
df5c3bd564
2 changed files with 8 additions and 0 deletions
|
@ -14,6 +14,9 @@
|
||||||
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||||
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
IFS=$'\n\t'
|
||||||
|
|
||||||
clean_dir()
|
clean_dir()
|
||||||
{
|
{
|
||||||
local dir="$1"
|
local dir="$1"
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
IFS=$'\n\t'
|
||||||
|
|
||||||
pacman_dir="/etc/pacman.d"
|
pacman_dir="/etc/pacman.d"
|
||||||
mirror_file="${pacman_dir}/mirrorlist"
|
mirror_file="${pacman_dir}/mirrorlist"
|
||||||
mirror_pacnew="${mirror_file}.pacnew"
|
mirror_pacnew="${mirror_file}.pacnew"
|
||||||
|
|
Loading…
Reference in a new issue