perhaps use switch-statement?
This commit is contained in:
parent
36a94a07a7
commit
1163a6e357
1 changed files with 15 additions and 0 deletions
15
deploy.sh
15
deploy.sh
|
@ -21,3 +21,18 @@ elif [ "${WWW_DEPLOY_ROOT_PRODUCTION}" == "${TARGET}" ] ; then
|
|||
else
|
||||
echo "Unknown environment: ${TARGET}"
|
||||
fi
|
||||
|
||||
case "${TARGET}" in
|
||||
"${WWW_DEPLOY_ROOT_DEVELOP}")
|
||||
echo "DepToDev"
|
||||
;;
|
||||
"${WWW_DEPLOY_ROOT_STAGING}")
|
||||
echo "DepToSta"
|
||||
;;
|
||||
"${WWW_DEPLOY_ROOT_PRODUCTION}")
|
||||
echo "DepToPro"
|
||||
;;
|
||||
*)
|
||||
echo "DevToFOO"
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue