From 9a82885483ac97b25fea4e851a2b9ed85da7e6b9 Mon Sep 17 00:00:00 2001 From: nikomiko Date: Thu, 5 Feb 2026 13:52:25 -0500 Subject: [PATCH] tweak: deployment script --- stage.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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