Do sanity checking early
Fail before doing anything when passed parameters are invalid.
This commit is contained in:
parent
61d0147e49
commit
211ecc58b5
@ -1,5 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ $# -ne 2 -o ! -d "$1" -o ! -d "$1/$2" ]; then
|
||||
echo "usage: $0 <environmentpath> <environment>" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ruby=ruby
|
||||
script="$1/$2/scripts/config_version.rb"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user