mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-12-23 01:13:40 +07:00
"|| exit 1" no longer required thanks to errexit
This commit is contained in:
parent
f9b5d7d3f4
commit
98d7c245ee
@ -11,7 +11,7 @@ set -o pipefail
|
||||
write_pid_file() {
|
||||
[[ -z "${TMP:-}" ]] && error "TMP is unset"
|
||||
safe-rm -rf "$TMP/security-misc-apt-get-update-pid";
|
||||
install -m644 /dev/null "$TMP/security-misc-apt-get-update-pid" || exit 1
|
||||
install -m644 /dev/null "$TMP/security-misc-apt-get-update-pid"
|
||||
echo "$$" | sponge -- "$TMP/security-misc-apt-get-update-pid"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user