Skip to content

Commit

Permalink
GPT-commit: Update wix-cli.sh
Browse files Browse the repository at this point in the history
GPT-commit: Update wix-cli.sh with modifications to the functions related to deeplinkUrlParam for improved performance and functionality.
  • Loading branch information
hwixley committed Aug 7, 2023
1 parent 3991e6a commit 3e739d9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions wix-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@ pull() {
wix_update() {
info_text "Checking for updates..."

current_dir=$(pwd)
cd "$mydir" || return 1
repo_branch=""
if git rev-parse --git-dir > /dev/null 2>&1; then
repo_branch=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p')
fi
if [ "$repo_branch" != "master" ]; then
warn_text "Not on master branch, skipping update"
cd "$current_dir" || return 1
return 1
fi

Expand All @@ -54,9 +56,9 @@ wix_update() {
echo "Diverged"
fi
echo ""
{
cd - || return 1
} &> /dev/null
# {
cd "$current_dir" || return 1
# } &> /dev/null
}

wix_update ""
Expand Down

0 comments on commit 3e739d9

Please sign in to comment.