Fix shellcheck
This commit is contained in:
parent
8756a0e614
commit
ade562aeeb
1 changed files with 2 additions and 2 deletions
|
@ -311,7 +311,7 @@ array-sum () {
|
||||||
|
|
||||||
# Given two exit codes, print a nonzero one if there is one
|
# Given two exit codes, print a nonzero one if there is one
|
||||||
exit-code () {
|
exit-code () {
|
||||||
if [ $1 -ne 0 ]; then
|
if [ "$1" -ne 0 ]; then
|
||||||
echo "$1"
|
echo "$1"
|
||||||
else
|
else
|
||||||
if [[ "$2" == "" ]]; then
|
if [[ "$2" == "" ]]; then
|
||||||
|
@ -388,7 +388,7 @@ case $COMPRESSION_ALGORITHM in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
ARCHIVE_EXIT_CODE="$(exit-code "${PIPESTATUS[0]}" "${PIPESTATUS[1]}")"
|
ARCHIVE_EXIT_CODE="$(exit-code "${PIPESTATUS[0]}" "${PIPESTATUS[1]}")"
|
||||||
if [ $ARCHIVE_EXIT_CODE -ne 0 ]; then
|
if [ "$ARCHIVE_EXIT_CODE" -ne 0 ]; then
|
||||||
log-fatal "Archive command exited with nonzero exit code $ARCHIVE_EXIT_CODE"
|
log-fatal "Archive command exited with nonzero exit code $ARCHIVE_EXIT_CODE"
|
||||||
fi
|
fi
|
||||||
sync
|
sync
|
||||||
|
|
Loading…
Add table
Reference in a new issue