diff --git a/bin/updateopenrowingmonitor.sh b/bin/updateopenrowingmonitor.sh index d74b650..83b8054 100755 --- a/bin/updateopenrowingmonitor.sh +++ b/bin/updateopenrowingmonitor.sh @@ -134,6 +134,7 @@ if getopts "b:" arg; then if ask "Do you want to switch from branch \"$CURRENT_BRANCH\" to branch \"$OPTARG\"?" Y; then print "Switching to branch \"$OPTARG\"..." + sudo git reset --hard origin/$CURRENT_BRANCH CURRENT_BRANCH=$OPTARG switch_branch else