perhaps use switch-statement?

This commit is contained in:
Manuel Friedli 2016-06-27 00:58:36 +02:00
parent 36a94a07a7
commit 1163a6e357

View file

@ -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