Skip to content

Commit

Permalink
use codespace flag in gh cs command only
Browse files Browse the repository at this point in the history
  • Loading branch information
rongxin-liu committed Nov 7, 2024
1 parent a07a78f commit c5be161
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 --codespace $CODESPACE_NAME --full
gh cs rebuild --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 --codespace $CODESPACE_NAME --full
gh cs rebuild --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 c5be161

Please sign in to comment.