summaryrefslogtreecommitdiff
path: root/autoscripts/prerm-xaw
diff options
context:
space:
mode:
Diffstat (limited to 'autoscripts/prerm-xaw')
-rw-r--r--autoscripts/prerm-xaw9
1 files changed, 5 insertions, 4 deletions
diff --git a/autoscripts/prerm-xaw b/autoscripts/prerm-xaw
index 2507a2f..98837f8 100644
--- a/autoscripts/prerm-xaw
+++ b/autoscripts/prerm-xaw
@@ -1,4 +1,5 @@
-for opts in #OPTS#; do
- update-alternatives --quiet --remove $opts
-done
-
+if [ "$1" = "remove" ]; then
+ for opts in #OPTS#; do
+ update-alternatives --quiet --remove $opts
+ done
+fi