mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-14 06:40:05 +00:00
fix: Improve update script (#27308)
This commit is contained in:
@@ -36,6 +36,14 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Resetting local changes to package.json and pnpm-lock.yaml..."
|
||||
git checkout --quiet -- package.json pnpm-lock.yaml || true
|
||||
|
||||
if ! command -v pnpm >/dev/null 2>&1; then
|
||||
echo "pnpm not found, preparing with Corepack..."
|
||||
corepack prepare pnpm@latest --activate
|
||||
fi
|
||||
|
||||
echo "Updating..."
|
||||
git pull --no-rebase
|
||||
|
||||
|
||||
Reference in New Issue
Block a user