aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/links-remove
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-02-02 17:56:50 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2023-02-02 17:56:50 +0100
commitadaf73b538b9704d7a4c45d132bc8e20127f498a (patch)
tree45523cfd5a6b5e97039f21772b9f3c7d7e4c0120 /links-remove
parentREADME: update (diff)
downloadconfig-links-adaf73b538b9704d7a4c45d132bc8e20127f498a.tar.gz
config-links-adaf73b538b9704d7a4c45d132bc8e20127f498a.zip
accomodate older bash-es
Diffstat (limited to 'links-remove')
-rwxr-xr-xlinks-remove3
1 files changed, 2 insertions, 1 deletions
diff --git a/links-remove b/links-remove
index c378485..2efc46d 100755
--- a/links-remove
+++ b/links-remove
@@ -8,7 +8,8 @@
# usage: ./links-remove [-h|--help] [-d|--database PATH] [-s|--shared-dir DIR] [-n|--dry-run]
set -o errexit -o nounset -o pipefail
-shopt -s inherit_errexit lastpipe
+shopt -s inherit_errexit 2> /dev/null || true
+shopt -s lastpipe
script_name="$( basename -- "${BASH_SOURCE[0]}" )"
readonly script_name