I am trying to get three buttons on my remove delete script so people will have a choice to 1 remove 2 delete 3 cancel. I am using Xdialog for this.
This here is just for two buttons with this setup you can only do one or the other.
Just am not sure just how to do this, any help would be great thanks
Code: Select all
#!/bin/sh
export RESOURCES="/usr/local/Manna/resources"
export REMOVE_DIR="/usr/local/Manna/removed"
if [ -d /usr/local/Manna/resources/Apocrypha/001tobittxt ]; then
Xdialog --title "Remove" --cancel-label "Remove from computor" --ok-label "Remove from Menu" --yesno "\n Remove Tobit \n" 0 0
if [[ $? == 0 ]]; then
mv $RESOURCES/Apocrypha/001tobittxt $REMOVE_DIR/
fi
if [[ $? == 0 ]]; then
rm -r $RESOURCES/Apocrypha/001tobittxt
fi
fi
exit 0
;;