Show
Ignore:
Timestamp:
12/13/07 14:59:42 (12 months ago)
Author:
gonzalo
Message:

RemoveScript? fixed/upgraded.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pbibuild/modules/nexuiz/overlay-dir/PBI.RemoveScript.sh

    r862 r1017  
    1111rm -fR /usr/local/bin/nexuiz-glx 
    1212rm -fR /usr/local/bin/nexuiz-sdl 
    13 cd /home  
    14  for i in `ls`  
    15  do  
    16    if [ -d "/home/${i}/.nexuiz" ]  
    17    then  
    18      kdialog --title "Uninstalling Nexuiz!" --yesno "Do you wish to erase nexuiz's saved games and configuration files for ${i} user as well?" 
    19      if [ "$?" = "0" ]  
    20      then  
    21        rm -fR /home/${i}/.nexuiz 
    22      fi  
    23    fi  
    24  done  
     13 
     14if [ ! -z "$DISPLAY" ] 
     15then 
     16 # Ask if we want to remove the user profiles 
     17 kdialog --yesno "Do you want to remove Nexuiz user settings?" --title "Remove user settings" 
     18 if [ "$?" = "0" ] 
     19 then 
     20  cd /home 
     21  for i in `ls` 
     22  do 
     23   if [ -e "/home/${i}/.nexuiz" ] 
     24   then 
     25    rm -rf /home/${i}/.nexuiz 
     26   fi 
     27  done 
     28 fi 
     29fi