Skip to content

Commit 3a66bf3

Browse files
fix: format and improve token parsing in test_install_script.sh
1 parent 1cc5836 commit 3a66bf3

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

bin/test_install_script.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ TOKEN=""
88
while [[ "$#" -gt 0 ]]; do
99
case $1 in
1010
--token)
11-
if [[ -n "$2" && "$2" != --* ]]; then
12-
TOKEN="$2"
13-
shift
14-
else
15-
echo "Error: --token requires a value"
16-
exit 1
17-
fi
18-
;;
11+
if [[ -n "$2" && "$2" != --* ]]; then
12+
TOKEN="$2"
13+
shift
14+
else
15+
echo "Error: --token requires a value"
16+
exit 1
17+
fi
18+
;;
1919
*) echo "Unknown parameter: $1"; exit 1 ;;
2020
esac
2121
shift

bin/test_install_script_over_homebrew.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
# Note: set -e is intentionally omitted here to allow manual exit code checking.
4+
35
# Attempt to run the install script
46
./install-cli.sh
57

0 commit comments

Comments
 (0)