From aa54eb3cb0d76e9aebd03da1ec8c8514d57509f9 Mon Sep 17 00:00:00 2001 From: tfredrick112 <38160688+tfredrick112@users.noreply.github.com> Date: Fri, 25 Apr 2025 19:10:54 +0530 Subject: [PATCH] Update 4-personalize-codespace.md and add code to execute the setup.sh file The postCreateCommand in the devcontainer.json has to be updated so that the setup.sh file gets executed on creation of the codespace. Only after this is done, we can execute the "sl" command on the terminal successfully. --- .github/steps/4-personalize-codespace.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/steps/4-personalize-codespace.md b/.github/steps/4-personalize-codespace.md index e6916a5..4ac1064 100644 --- a/.github/steps/4-personalize-codespace.md +++ b/.github/steps/4-personalize-codespace.md @@ -65,6 +65,13 @@ Let's see how this works! 1. Switch back to the homepage of your repository and view the `setup.sh` to verify the new code was pushed to your repository. 1. Close the codespace web browser tab. +1. Edit the .devcontainer/devcontainer.json file. +1. Update the "postCreateCommand" section as follows: + + ```shell + "postCreateCommand": "./setup.sh" + ``` + 1. Click the **Create codespace on main** button. > Wait about **2 minutes** for the codespace to spin itself up.