Skip to content

Commit

Permalink
specify codespace name in gh cs rebuild command
Browse files Browse the repository at this point in the history
  • Loading branch information
rongxin-liu committed Nov 7, 2024
1 parent e5f187e commit a07a78f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions update50.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if [ "$1" == "-t" ]; then
if command -v gh &> /dev/null; then

# Use gh cli to rebuild if available
gh cs rebuild --repo $GITHUB_REPOSITORY --full
gh cs rebuild --repo $GITHUB_REPOSITORY --codespace $CODESPACE_NAME --full
echo -e "\033[31mYour codespace is now being rebuilt, please keep the browser window open and wait for it to reload.\nDo not perform any actions until the rebuild is complete.\033[0m"
else

Expand Down Expand Up @@ -73,7 +73,7 @@ if [ "$remote" != "$local" ] || [ "$tag" != "$issue" ] || [ "$1" == "-f" ] || [
if command -v gh &> /dev/null; then

# Use gh cli to rebuild if available
gh cs rebuild --repo $GITHUB_REPOSITORY --full
gh cs rebuild --repo $GITHUB_REPOSITORY --codespace $CODESPACE_NAME --full
echo -e "\033[31mYour codespace is now being rebuilt, please keep the browser window open and wait for it to reload.\nDo not perform any actions until the rebuild is complete.\033[0m"
else

Expand Down

0 comments on commit a07a78f

Please sign in to comment.