Skip to content

Commit

Permalink
Unrecognized switches caused infinite loop in all the commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
dozzie authored and mmoll committed Apr 7, 2018
1 parent 0a8c99a commit 105c1dc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/freight-add
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ do
-v|--verbose) VERBOSE=1 shift;;
-e|--add-error) FREIGHT_ADD_ERROR="YES" shift;;
-h|--help) usage 0;;
-*) echo "# [freight] unknown switch: $1" >&2;;
-*) echo "# [freight] unknown switch: $1" >&2; usage 1;;
*) break;;
esac
done
Expand Down
2 changes: 1 addition & 1 deletion bin/freight-cache
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ do
--conf=*) CONF="$(echo "$1" | cut -c"8-")" shift;;
-v|--verbose) VERBOSE=1 shift;;
-h|--help) usage 0;;
-*) echo "# [freight] unknown switch: $1" >&2;;
-*) echo "# [freight] unknown switch: $1" >&2; usage 1;;
*) break;;
esac
done
Expand Down
2 changes: 1 addition & 1 deletion bin/freight-clear-cache
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ do
--conf=*) CONF="$(echo "$1" | cut -c"8-")" shift;;
-v|--verbose) VERBOSE=1 shift;;
-h|--help) usage 0;;
-*) echo "# [freight] unknown switch: $1" >&2;;
-*) echo "# [freight] unknown switch: $1" >&2; usage 1;;
*) break;;
esac
done
Expand Down
2 changes: 1 addition & 1 deletion bin/freight-init
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ do
--suite=*) SUITE="$(echo "$1" | cut -c"9-")" shift;;
-v|--verbose) VERBOSE=1 shift;;
-h|--help) usage 0;;
-*) echo "# [freight] unknown switch: $1" >&2;;
-*) echo "# [freight] unknown switch: $1" >&2; usage 1;;
*) break;;
esac
done
Expand Down

0 comments on commit 105c1dc

Please sign in to comment.