Skip to content

Commit

Permalink
Merge pull request #30 from hwixley/toteme-webview-deeplinkUrlParam
Browse files Browse the repository at this point in the history
Toteme webview deeplink url param
  • Loading branch information
hwixley authored Aug 7, 2023
2 parents 59c1f75 + 3e739d9 commit f8e197a
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions wix-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,19 @@ pull() {

wix_update() {
info_text "Checking for updates..."
if [ "$branch" != "master" ]; then

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

cd "$mydir" || return 1
git fetch
UPSTREAM=${1:-'@{u}'}
LOCAL=$(git rev-parse @)
Expand All @@ -49,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 f8e197a

Please sign in to comment.