From df5c3bd564a7cd9e22ce050abbcadfe46bf1f669 Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Sat, 13 Jul 2019 13:16:01 +0200 Subject: [PATCH] Strict mode --- bin/clean | 3 +++ bin/update_mirrorlist | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/bin/clean b/bin/clean index 2ee093f..4fba6b3 100755 --- a/bin/clean +++ b/bin/clean @@ -14,6 +14,9 @@ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +set -euo pipefail +IFS=$'\n\t' + clean_dir() { local dir="$1" diff --git a/bin/update_mirrorlist b/bin/update_mirrorlist index 7318d1f..c5b0e23 100755 --- a/bin/update_mirrorlist +++ b/bin/update_mirrorlist @@ -1,3 +1,8 @@ +#!/bin/bash + +set -euo pipefail +IFS=$'\n\t' + pacman_dir="/etc/pacman.d" mirror_file="${pacman_dir}/mirrorlist" mirror_pacnew="${mirror_file}.pacnew"