Mercurial > hg > soundsoftware-site
diff deploy/any/run-provisioning.sh @ 1603:455ca6e45c49 deploy
Directory fix
author | Chris Cannam |
---|---|
date | Thu, 24 Aug 2017 14:46:03 +0100 |
parents | 07deb8466f65 |
children | 2162f6ff8580 |
line wrap: on
line diff
--- a/deploy/any/run-provisioning.sh Thu Aug 24 14:26:26 2017 +0100 +++ b/deploy/any/run-provisioning.sh Thu Aug 24 14:46:03 2017 +0100 @@ -1,9 +1,14 @@ #!/bin/bash mydir=$(dirname "$0") +case "$mydir" in + /*) ;; + *) mydir=$(echo "$(pwd)/$mydir" | sed 's,/\./,/,g') +esac if [ "$mydir" != "/code-to-deploy/deploy/any" ]; then echo "ERROR: Expected repository to be at /code-to-deploy prior to provisioning" + echo " (My directory is $mydir, expected /code-to-deploy/deploy/any)" exit 2 fi