Skip to content

Commit

Permalink
postcreate script in domain a lab
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchv85 authored Dec 2, 2024
1 parent 30b4d44 commit 2eec33e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions labs/techlib-vxlan-domain-a/postCreate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

if [ "${GITHUB_REPOSITORY}" ]; then
grep -rl '{{gh.codespace_name}}' . --exclude-dir .git | xargs sed -i 's/{{gh.repo_name}}/'"${CODESPACE_NAME##*/}"'/g'
grep -rl '{{gh.codespaces_port_forwarding}}' . --exclude-dir .git | xargs sed -i 's/{{gh.org_name}}/'"${GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN%%/*}"'/g'
fi

0 comments on commit 2eec33e

Please sign in to comment.