aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/links-remove
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-04-02 14:28:37 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2022-04-02 14:28:37 +0300
commit65bfbc1fb54850275d4e9842ef2bd333d2081af4 (patch)
treecd38ddc1ad1abf3d930bd769a7154a13da161b02 /links-remove
parenttest: add a test case (diff)
downloadconfig-links-65bfbc1fb54850275d4e9842ef2bd333d2081af4.tar.gz
config-links-65bfbc1fb54850275d4e9842ef2bd333d2081af4.zip
bash best practices & linting
Diffstat (limited to 'links-remove')
-rwxr-xr-xlinks-remove5
1 files changed, 2 insertions, 3 deletions
diff --git a/links-remove b/links-remove
index ea79596..c378485 100755
--- a/links-remove
+++ b/links-remove
@@ -7,9 +7,8 @@
# usage: ./links-remove [-h|--help] [-d|--database PATH] [-s|--shared-dir DIR] [-n|--dry-run]
-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