aboutsummaryrefslogtreecommitdiffstats
path: root/bin/install_perl_modules
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2015-10-07 09:34:15 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2015-10-07 16:31:23 +0100
commit9a13d4aab8954939a75bf26f52761ac4f7a100d0 (patch)
treeb9b4c0771335094de715d53296ad42ae058d2c6b /bin/install_perl_modules
parentc327ab956418d8217fa02443a90233be906afa78 (diff)
Fix non-working scripts when CDPATH is set.
If the CDPATH environment variable is set (so cd can look in multiple places), cd prints out the resulting directory when used. This confuses a command sequence used in a couple of places doing (cd && pwd) to get a directory path. Make sure we ignore any output from cd.
Diffstat (limited to 'bin/install_perl_modules')
-rwxr-xr-xbin/install_perl_modules2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/install_perl_modules b/bin/install_perl_modules
index 3e43b5bb7..d757facb6 100755
--- a/bin/install_perl_modules
+++ b/bin/install_perl_modules
@@ -2,7 +2,7 @@
set -e
-DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd | sed -e 's/\/bin$//' )"
+DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd | sed -e 's/\/bin$//' )"
$DIR/vendor/bin/carton install --deployment --without uk --without zurich --without open311-endpoint