From 78824e72c78b5662f9656f6025510ed2ea8e9d6b Mon Sep 17 00:00:00 2001 From: BjoernAtBosch Date: Tue, 10 Sep 2024 07:26:00 +0000 Subject: [PATCH] Review fixes --- setup/src/common/scripts/onCreateCommand.sh | 5 +++-- setup/src/common/scripts/postStartCommand.sh | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/setup/src/common/scripts/onCreateCommand.sh b/setup/src/common/scripts/onCreateCommand.sh index 26abf66e..b682cb12 100755 --- a/setup/src/common/scripts/onCreateCommand.sh +++ b/setup/src/common/scripts/onCreateCommand.sh @@ -24,8 +24,9 @@ if [[ -z "${VELOCITAS_OFFLINE}" ]]; then fi # Call user initialization hook if present -if [[ -x .devcontainer/scripts/onCreateUserHook.sh ]]; then - .devcontainer/scripts/onCreateUserHook.sh +ON_CREATE_USER_HOOK_PATH=.devcontainer/scripts/onCreateUserHook.sh +if [[ -x $ON_CREATE_USER_HOOK_PATH ]]; then + $ON_CREATE_USER_HOOK_PATH fi echo "#######################################################" diff --git a/setup/src/common/scripts/postStartCommand.sh b/setup/src/common/scripts/postStartCommand.sh index 9ed00194..753c4e68 100755 --- a/setup/src/common/scripts/postStartCommand.sh +++ b/setup/src/common/scripts/postStartCommand.sh @@ -16,6 +16,7 @@ .devcontainer/scripts/upgrade-cli.sh # Call user initialization hook if present -if [[ -x .devcontainer/scripts/onPostStartUserHook.sh ]]; then - .devcontainer/scripts/onPostStartUserHook.sh +POST_START_USER_HOOK_PATH=.devcontainer/scripts/onPostStartUserHook.sh +if [[ -x $POST_START_USER_HOOK_PATH ]]; then + $POST_START_USER_HOOK_PATH fi