From 190e0e31b7fb3c18133b338c64d40eb71a81d1e6 Mon Sep 17 00:00:00 2001 From: Oliverio Gombert Date: Wed, 10 Jun 2026 22:59:04 +0200 Subject: [PATCH] feat: run user customize script (.devcontainer/customize.sh) if present --- bin/lifecycle/util/setup-install-on-create.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bin/lifecycle/util/setup-install-on-create.sh b/bin/lifecycle/util/setup-install-on-create.sh index 4330d5e..41c6379 100755 --- a/bin/lifecycle/util/setup-install-on-create.sh +++ b/bin/lifecycle/util/setup-install-on-create.sh @@ -33,4 +33,14 @@ else notice "WARNING: setup:install failed. Open a terminal and run it manually: $SCRIPT_DIR/setup-install.sh | bash" fi + +# Run user customize script if present (.devcontainer/customize.sh) +CUSTOMIZE="$(cd "$BIN_DIR/../.." && pwd)/customize.sh" +if [ -f "$CUSTOMIZE" ]; then + notice "Running .devcontainer/customize.sh ..." + if ! bash "$CUSTOMIZE"; then + notice "WARNING: customize.sh exited with errors — check output above." + fi +fi + exit 0