Advertisement
Guest User

Untitled

a guest
Jun 29th, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.04 KB | None | 0 0
  1. menuselect=`/usr/bin/zenity --title="Please select an option from the list below " --width=400 --height=200 \
  2.                             --text="Select:" \
  3.                             --list --column="Selected" --column="Task" --column="Description" \
  4.                             --radiolist TRUE    clean   "Remove temporary downloaded files" FALSE add "Add extra software Sources" FALSE install "installl software from other sources"  `
  5.  
  6.  
  7. if [ $? -eq 0 ];
  8. then
  9.          
  10.         for menuSselect in $menuselect
  11.         do
  12.                if [ "$menuselect" = "clean" ];
  13.                      then
  14.                      $HOME/Downloads/prog/tools/clean.sh
  15.          elif [ "$menuselect" = "add" ];
  16.                      then
  17.              $HOME/Downloads/prog/tools/repos.sh
  18.          elif [ "$menuselect" = "install" ];
  19.                      then
  20.             $HOME/Downloads/prog/tools/installer.sh
  21.                    
  22.                fi
  23.         done
  24.    
  25.        
  26.  
  27.      elif [ $? -eq 1 ]; then
  28.   zenity --info --title="Aborted" --text="Programme closed";  
  29.         exit
  30. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement