Checking for the existence of a directory which should resolve to ~/code/devtools/deploy-mix.
This if statement doesn't pass -- though I can cd ~/code/devtools/deploy-mix
. Plz help with bash syntax :)
GIT_DIR="$HOME/code"
if [ -d "${GIT_DIR}/devtools/deploy-mix" ]; then
echo "found $GIT_DIR/devtools/deploy-mix"
fi
output:
sh -x script
'[' -d '$HOME/code/devtools/deploy-mix' ']'
I'd love to give out some internet karma for this one and I'm ok if you decide to call me a noob (sometimes the coding angle doesn't sit on your shoulder).