From 8f96f50dcd3a33c2922e4c252f020516ed87e6b3 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Mon, 19 Apr 2021 00:38:14 +0530 Subject: [PATCH] Make sure global composer.json directory exists --- src/scripts/linux.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scripts/linux.sh b/src/scripts/linux.sh index c282d5e3..13bf9ca3 100644 --- a/src/scripts/linux.sh +++ b/src/scripts/linux.sh @@ -171,6 +171,7 @@ configure_composer() { exit 1; fi if ! [ -e "$composer_json" ]; then + sudo mkdir -p "$(dirname "$composer_json")" echo '{}' | tee "$composer_json" >/dev/null 2>&1 sudo chmod 644 "$composer_json" fi