aboutsummaryrefslogtreecommitdiffstats
path: root/bin/install_perl_modules
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-07-19 19:53:47 +0100
committerMatthew Somerville <matthew@mysociety.org>2012-07-19 19:53:47 +0100
commit0485616398282c41cac9b3c96d99a752b1839f1f (patch)
treeb31fc1c10bcd1506626f1d6f47ec435bf02d51ad /bin/install_perl_modules
parent0a2f498a4fb591d8c5072895de736738b6bda1b7 (diff)
Remove relative paths from install_perl_modules. Fixes #305.
Diffstat (limited to 'bin/install_perl_modules')
-rwxr-xr-xbin/install_perl_modules4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/install_perl_modules b/bin/install_perl_modules
index 0563baf96..2df4ffbf8 100755
--- a/bin/install_perl_modules
+++ b/bin/install_perl_modules
@@ -2,7 +2,7 @@
DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd | sed -e 's/\/bin$//' )"
-$DIR/bin/cpanm -l local Carton
+$DIR/bin/cpanm -l $DIR/local Carton
export PATH=$DIR/local/bin:$PATH
export PERL5LIB=$DIR/local/lib/perl5
@@ -17,7 +17,7 @@ if [ $HAVE_IM -ne 0 ]
then
read -p "Image::Magick is not installed. Do you want to attempt to install it?" yn
case $yn in
- [Yy]* ) ./local/bin/carton install Image::Magick;;
+ [Yy]* ) $DIR/local/bin/carton install Image::Magick;;
* ) echo 'You will need to install it for FixMyStreet to work';;
esac
fi