diff --git a/stage.sh b/stage.sh index 858d124..c961d62 100755 --- a/stage.sh +++ b/stage.sh @@ -8,5 +8,5 @@ SOURCE_DIR=$1 -cd "$1"|| { echo "Can't cd 😓"; exit; } -git fetch --all && git branch "backup-$(date +'%s')" && git reset --hard origin/main && npx turbo build \ No newline at end of file +cd "$1" || { echo "Can't cd 😓 - code $?"; exit; } +git fetch --all && git branch "backup-$(date +'%s')" && git checkout -f origin/main && npx turbo build \ No newline at end of file