From 7f01bb930b893cb0d046f65aa2a2fe444dbde852 Mon Sep 17 00:00:00 2001 From: Chris Reynolds Date: Fri, 22 Sep 2023 15:28:58 -0600 Subject: [PATCH] print current working directory --- private/scripts/helpers.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/private/scripts/helpers.sh b/private/scripts/helpers.sh index 665e1328..6e67d842 100755 --- a/private/scripts/helpers.sh +++ b/private/scripts/helpers.sh @@ -372,6 +372,9 @@ function update_composer() { # Add a post-install hook to the composer.json. echo "${yellow}Adding a post-install hook to composer.json.${normal}" jq -r '.scripts += { "post-install-cmd": [ "@composer install --no-dev --prefer-dist --ignore-platform-reqs --working-dir=%sagedir%" ] }' composer.json > composer.new.json + + pwd + if [[ "$OSTYPE" == "darwin"* ]]; then # Mac OS sed -i '' "s,%sagedir%,$sagedir," composer.new.json