1 parent 4c5643c commit 1d976b1Copy full SHA for 1d976b1
1 file changed
deploy.sh
@@ -37,8 +37,14 @@ while [ "${1#-}" != "$1" ]; do
37
usage
38
exit 0
39
;;
40
+ '-')
41
+ error "Invalid options" 1 usage
42
+ ;;
43
+ --*)
44
+ error "Unknown option: $opt" 1 usage
45
46
*)
- error "unknown option: -$opt" 1 usage
47
+ error "Unknown option: -$opt" 1 usage
48
49
esac
50
done
@@ -95,7 +101,7 @@ if [ "$bootstrap_diff" -ne 0 ]; then
95
101
read -r response
96
102
case "$response" in
97
103
[yY][eE][sS]|[yY]) ;;
98
- *) printf 'Cancelling deployment.'; exit 1 ;;
104
+ *) printf "Cancelling deployment.\n"; exit 1 ;;
99
105
100
106
fi
107
0 commit comments