From 65bfbc1fb54850275d4e9842ef2bd333d2081af4 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 2 Apr 2022 14:28:37 +0300 Subject: bash best practices & linting --- links-chmod | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'links-chmod') diff --git a/links-chmod b/links-chmod index 9810cf6..f722b95 100755 --- a/links-chmod +++ b/links-chmod @@ -7,9 +7,8 @@ # usage: ./links-chmod [-h|--help] [-d|--database PATH] [-s|--shared-dir DIR] [-n|--dry-run] MODE -set -o errexit -set -o nounset -set -o pipefail +set -o errexit -o nounset -o pipefail +shopt -s inherit_errexit lastpipe script_name="$( basename -- "${BASH_SOURCE[0]}" )" readonly script_name -- cgit v1.2.3