diff --git a/bin/compile b/bin/compile index c80f08e..cf53bf4 100755 --- a/bin/compile +++ b/bin/compile @@ -25,11 +25,11 @@ echo "Using Perl $PERL_VERSION" | indent if [ -f $BUILD_DIR/Makefile.PL ]; then echo "-----> Installing dependencies" VENDOR_DEPS="$BUILD_DIR/vendor/perl-deps" - CACHE_DEPS="$CACHE_DIR/perl-deps" + CACHE_DEPS="$CACHE_DIR/$PERL_VERSION/perl-deps" CPANM="perl -S $(which cpanm) -l $CACHE_DEPS" mkdir -p "$CACHE_DIR" - $CPANM --notest --installdeps $BUILD_DIR 2>&1 | indent + $CPANM --notest --installdeps "$BUILD_DIR" 2>&1 | indent cp -R "$CACHE_DEPS" "$VENDOR_DEPS"