We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb18b17 commit 131307eCopy full SHA for 131307e
1 file changed
uninstall.sh
@@ -111,8 +111,15 @@ remove_configs() {
111
# Remove draphyOS wallpaper only (not user's wallpaper)
112
# Check if it's the draphyOS wallpaper before removing
113
if [ -f "$HOME/.config/wallpaper.png" ]; then
114
- # Only remove if it matches draphyOS wallpaper (by checking if backup exists)
115
- if [ ! -f "$HOME/.config-backup-"*"/wallpaper.png" ] 2>/dev/null; then
+ # Only remove if no backup exists (meaning it's draphyOS wallpaper)
+ local has_backup=false
116
+ for backup_wp in "$HOME"/.config-backup-*/wallpaper.png; do
117
+ if [ -f "$backup_wp" ]; then
118
+ has_backup=true
119
+ break
120
+ fi
121
+ done
122
+ if [ "$has_backup" = false ]; then
123
rm -f "$HOME/.config/wallpaper.png" 2>/dev/null || true
124
fi
125
0 commit comments