Strict mode

This commit is contained in:
Rodolphe Breard 2019-07-13 13:16:01 +02:00
parent 0e2cc5c3cf
commit df5c3bd564
2 changed files with 8 additions and 0 deletions

View file

@ -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"

View file

@ -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"