mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-05 18:13:50 +00:00
fix: suppress grep error when pnpm-workspace.yaml doesn't exist in zigbee2mqtt update
Agent-Logs-Url: https://github.com/community-scripts/ProxmoxVE/sessions/6bc6bdc3-ea2e-4577-b834-e25065ecf76d Co-authored-by: MickLesk <47820557+MickLesk@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
54f043d160
commit
373e4c0c9a
@@ -50,7 +50,7 @@ function update_script() {
|
||||
rm -rf /opt/zigbee2mqtt/data
|
||||
mv /opt/z2m_backup/data /opt/zigbee2mqtt
|
||||
cd /opt/zigbee2mqtt
|
||||
grep -q "^packageImportMethod" ./pnpm-workspace.yaml || echo "packageImportMethod: hardlink" >>./pnpm-workspace.yaml
|
||||
grep -q "^packageImportMethod" ./pnpm-workspace.yaml 2>/dev/null || echo "packageImportMethod: hardlink" >>./pnpm-workspace.yaml
|
||||
$STD pnpm install --frozen-lockfile
|
||||
$STD pnpm build
|
||||
rm -rf /opt/z2m_backup
|
||||
|
||||
Reference in New Issue
Block a user