From dc1112014ea8adf4ccd9014c1b967b78fa8d7fa0 Mon Sep 17 00:00:00 2001 From: Andy Paine Date: Wed, 6 May 2020 20:42:12 +0100 Subject: [PATCH] Fix bin/supply script It's unclear what directory this executes in but `dirname` should be able to handle it --- bin/supply | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/supply b/bin/supply index 9607ebd..564c88d 100755 --- a/bin/supply +++ b/bin/supply @@ -9,7 +9,10 @@ DEPS_DIR=$3 IDX=$4 echo "Copying fetch_credhub_credentials.sh to profile.d directory" +cd $(dirname $0)/.. mkdir -p $DEPS_DIR/$IDX/profile.d +mkdir -p $DEPS_DIR/$IDX/bin cp bin/fetch_credhub_credentials.sh $DEPS_DIR/$IDX/profile.d +cp credhub $DEPS_DIR/$IDX/bin/ echo "-----> Done." exit 0