1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-10 21:24:15 +00:00

fix strict bash pipefail

This commit is contained in:
deadc0de6
2023-11-09 11:30:05 +01:00
parent 7bd1d7f74a
commit 94d97bf7a7
152 changed files with 166 additions and 162 deletions

View File

@@ -8,7 +8,7 @@
#
## start-cookie
set -euo errtrace pipefail
set -eu -o errtrace -o pipefail
cur=$(cd "$(dirname "${0}")" && pwd)
ddpath="${cur}/../"
PPATH="{PYTHONPATH:-}"
@@ -194,7 +194,7 @@ cat "${cfg}"
# list files
cd "${ddpath}" | ${bin} detail -c "${cfg}" -p p1 -V
cnt=$(cat "${cfg}" | grep chmod | wc -l)
cnt=$(cat "${cfg}" | (grep chmod || :) | wc -l)
[ "${cnt}" != "0" ] && echo "chmod inserted but not needed" && exit 1
## with config option chmod_on_import