Skip to content

Commit

Permalink
Added arguments to post-create-command.sh so this script can be re-us…
Browse files Browse the repository at this point in the history
…ed at a later moment.
  • Loading branch information
dlemstra committed Sep 2, 2023
1 parent 1973300 commit d8e7f5b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/linux-x64/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"dockerfile": "../../build/linux-x64/Dockerfile",
"context": "../.."
},
"postCreateCommand": "bash .devcontainer/linux-x64/post-create-command.sh",
"postCreateCommand": "bash .devcontainer/linux-x64/post-create-command.sh linux x64",
"customizations": {
"vscode": {
"extensions": [
Expand Down
5 changes: 4 additions & 1 deletion .devcontainer/linux-x64/post-create-command.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/bash
set -e

config=$1
arch=$2

if [ -z "$GITHUB_USER" ]; then
export GITHUB_USER='dlemstra'
fi
Expand All @@ -9,4 +12,4 @@ if [ -z "$GITHUB_TOKEN" ]; then
export GITHUB_TOKEN=$(cat /build/api.key.txt)
fi

build/shared/install.Magick.Native.sh ${GITHUB_USER} ${GITHUB_TOKEN} linux x64
build/shared/install.Magick.Native.sh ${GITHUB_USER} ${GITHUB_TOKEN} ${config} ${arch}

0 comments on commit d8e7f5b

Please sign in to comment.