Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set -euo pipefail
- IFS=$'\n\t'
- trap clear ERR
- DIALOG_OK=0
- DIALOG_CANCEL=1
- DIALOG_HELP=2
- DIALOG_EXTRA=3
- DIALOG_ITEM_HELP=4
- DIALOG_ESC=255
- exec 3<>file
- dialog --output-fd 3 \
- --clear \
- --title "Delete file" \
- --backtitle "Linux Shell Script Tutorial Example" \
- --yesno "Are you sure you want to permanently delete \"/tmp/foo.txt\"?" 7 60
- echo "Never Gona Go Here"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement