Skip to content

Commit e484913

Browse files
authored
fix(script): Make package removal more robust
1 parent 13b269e commit e484913

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

04-customize-desktop.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/bin/bash
22

33
# ==============================================================================
4-
# LuminOS Build Script - Phase 4: Desktop Customization & Branding
4+
# LuminOS Build Script, Phase 4: Desktop Customization & Branding
55
#
66
# Author: Gabriel, Project Leader @ LuminOS
7-
# Version: 0.2.2
7+
# Version: 0.2.3
88
# ==============================================================================
99

1010
set -e
@@ -30,7 +30,8 @@ set -e
3030
export DEBIAN_FRONTEND=noninteractive
3131
echo "--> Removing unwanted packages..."
3232
PACKAGES_TO_REMOVE="kmahjongg kmines kpat ksnake kmail kontact akregator"
33-
apt-get purge -y $PACKAGES_TO_REMOVE
33+
# Added --ignore-missing to prevent errors if a package is not installed
34+
apt-get purge -y --ignore-missing $PACKAGES_TO_REMOVE
3435
apt-get autoremove -y
3536
echo "--> Applying system-wide dark theme (Breeze Dark)..."
3637
mkdir -p /etc/skel/.config

0 commit comments

Comments
 (0)