Skip to content

Commit f54fb0b

Browse files
committed
fixup: Ensure upgrade script compatibility with set -euo pipefail
1 parent eb16534 commit f54fb0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/tests.upgrade.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ if ! [[ "$0" =~ scripts/tests.upgrade.sh ]]; then
1010
exit 255
1111
fi
1212

13-
VERSION=$1
13+
VERSION="${1:-}"
1414
if [[ -z "${VERSION}" ]]; then
1515
echo "Missing version argument!"
1616
echo "Usage: ${0} [VERSION] [NEW-BINARY]" >>/dev/stderr
1717
exit 255
1818
fi
1919

20-
NEW_BINARY=$2
20+
NEW_BINARY="${2:-}"
2121
if [[ -z "${NEW_BINARY}" ]]; then
2222
echo "Missing new binary path argument!"
2323
echo "Usage: ${0} [VERSION] [NEW-BINARY]" >>/dev/stderr

0 commit comments

Comments
 (0)