Skip to content

Commit

Permalink
Remove dangling references to variable in the setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Picco committed Mar 20, 2024
1 parent 0017f17 commit 699f5e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ TOKEN_DISPENSER_DIR="$DIR/../../token-dispenser";

usage() {
cat <<EOF
Usage: $0 -d[--dev]|-t[--test]|-c[--csv] -v[--verbose] -h[--help]
Usage: $0 -d[--dev]|-t[--test] -v[--verbose] -h[--help]
where:
-d | --dev : start up test validator, deploy programs
-t | --test : run tests
Expand All @@ -28,7 +28,7 @@ for i in "$@"
do
case $i in
-d|--dev)
if [ "$test" -eq 1 ] || [ "$csv" -eq 1 ]; then
if [ "$test" -eq 1 ]; then
usage
exit
else
Expand Down Expand Up @@ -59,8 +59,8 @@ case $i in
esac
done

if [ "$dev" -eq 0 ] && [ "$test" -eq 0 ] && [ "$csv" -eq 0 ]; then
printf "No mode selected. Please select either -d[--dev] or -t[--test] or -c[--csv]\n\n"
if [ "$dev" -eq 0 ] && [ "$test" -eq 0 ]; then
printf "No mode selected. Please select either -d[--dev] or -t[--test]\n\n"
usage
exit 1
fi
Expand Down

0 comments on commit 699f5e4

Please sign in to comment.