From 573ded6d410d29dbec46da99e4b67122eb9a1ad7 Mon Sep 17 00:00:00 2001 From: Jason Dusek <jason.dusek@gmail.com> Date: Wed, 21 Dec 2016 20:23:35 -0800 Subject: [PATCH] Idempotency in symlink creation (#349) --- bin/compile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/compile b/bin/compile index adef2362..033419c4 100755 --- a/bin/compile +++ b/bin/compile @@ -160,9 +160,9 @@ mkdir -p /app/.heroku/src if [[ $BUILD_DIR != '/app' ]]; then # python expects to reside in /app, so set up symlinks # we will not remove these later so subsequent buildpacks can still invoke it - ln -s $BUILD_DIR/.heroku/python /app/.heroku/python - ln -s $BUILD_DIR/.heroku/vendor /app/.heroku/vendor - ln -s $BUILD_DIR/.heroku/venv /app/.heroku/venv + ln -nsf $BUILD_DIR/.heroku/python /app/.heroku/python + ln -nsf $BUILD_DIR/.heroku/vendor /app/.heroku/vendor + ln -nsf $BUILD_DIR/.heroku/venv /app/.heroku/venv # Note: .heroku/src is copied in later. fi -- GitLab