Well i switched themes and im not getting the error i was using a custom theme by the way from gnome-look.org
but now my radiobox wont show up. not that it did before but its not showing up.
here is my code am i doing somthing wrong...?
Code:
#!/bin/bash
if [ $(whoami) != "root" ]; then
zenity --error --text="Sorry ! your are not root user."
exit 1
fi
zenity --info --text="This Script will backup a selected directory to a external drive for you."
zenity --info --text="Press okay and you will be able to chose if you would like to backup or restore"
menu(){
im="zenity --list --radiolist --width=800 --height=600 --title\"Huntaz's backup utility\""
im=$im" --column=\" \" --column \"What would you like to do?\" --column \"Description\" "
im=$im"FALSE \"Task 1\" \"Backup\" "
im=$im"FALSE \"Task 2\" \"Restore\" "
}
option(){
choice= 'echo $im | sh -'
if echo $choice | grep "Task 1" > /dev/null;
then
clear
zenity --question="This is going to format your external drive are you sure?" FORMAT
zenity --entry="Please specify the name of your external drive, Example : /dev/sdb/ " DRIVEN
zenity --entry="Please specify the directory you would like to backup Example : /home/$(whoami)/Documents/" DIR
zenity --entry="Please specify what you would like the backup to be called " BNAME
umount "$DRIVEN"
mkfs.vfat -n Backup -I "$DRIVEN"
cd /mnt/usbflash/
mount "$DRIVEN" /mnt/usbflash/
sudo tar -cf - "$DIR" | gzip -c > /mnt/usbflash/"$BNAME".tar.gz
zenity --info --text="Your backup is complete"
fi
menu
option
}
please ignore those bottom zenity questions i forgot to revise them according to what i have now lol