aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/remove-theme
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/remove-theme')
-rw-r--r--scripts/remove-theme8
1 files changed, 0 insertions, 8 deletions
diff --git a/scripts/remove-theme b/scripts/remove-theme
index 7bfe9e5..90e1682 100644
--- a/scripts/remove-theme
+++ b/scripts/remove-theme
@@ -13,7 +13,6 @@ function get_current_theme () {
[[ $opt != THEME=* ]] && continue
theme=${opt##*=}
done < $sysconfig
- #[[ -z $theme ]] && theme="Mandriva"
echo $theme
}
@@ -47,13 +46,6 @@ function update_boot () {
}
theme_to_remove=$1
-if [ "$theme_to_remove" = Mandrakelinux ]; then
- # in case we are upgrading mandrakelinux-theme to mandriva-theme
- # "remove-theme Mandrakelinux" will be called thinking there is no theme anymore
- grep -qi "THEME=Mandriva" $sysconfig && exit 0
-fi
-
-
current_theme=$(get_current_theme)
if [ -z "$theme_to_remove" -o "$theme_to_remove" = "$current_theme" ]; then
echo Removing $current_theme theme