Skip to content

Commit 300e95f

Browse files
committed
Add error checking to run0 in feature enable/disable
1 parent 38d2964 commit 300e95f

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

10/system_root/usr/bin/heliumos-rancher_desktop-disable

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
set -e
44

55
run0 sh -c '
6+
set -e
67
rm -rf /opt/rancher-desktop
78
rm -f /usr/local/bin/rancher-desktop
89
rm -f /usr/local/share/applications/rancher-desktop.desktop

10/system_root/usr/bin/heliumos-rancher_desktop-enable

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ chmod +x /tmp/rancher-desktop.AppImage
1010
/tmp/rancher-desktop.AppImage --appimage-extract
1111

1212
run0 sh -c '
13+
set -e
1314
mkdir -p /opt/rancher-desktop
1415
mv /tmp/rancher-desktop.AppImage /opt/rancher-desktop/
1516
cp squashfs-root/rancher-desktop.desktop /opt/rancher-desktop/

10/system_root/usr/bin/heliumos-vscode-disable

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
set -e
44

55
run0 sh -c '
6+
set -e
67
rm -rf /opt/VSCode-linux-x64
78
rm /usr/local/bin/code
89
rm /usr/local/share/applications/vscode.desktop

10/system_root/usr/bin/heliumos-vscode-enable

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ tar -xzf /tmp/vscode.tar.gz
88
rm /tmp/vscode.tar.gz
99

1010
run0 sh -c '
11+
set -e
1112
mv VSCode-linux-x64 /opt/
1213
ln -sf /opt/VSCode-linux-x64/bin/code /usr/local/bin/
1314
ln -sf /usr/share/heliumos/feature/vscode/vscode.desktop /usr/local/share/applications/

0 commit comments

Comments
 (0)