Advertisement
Guest User

Untitled

a guest
Sep 21st, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.37 KB | None | 0 0
  1. set -euo pipefail
  2. IFS=$'\n\t'
  3.  
  4. trap clear ERR
  5.  
  6. DIALOG_OK=0
  7. DIALOG_CANCEL=1
  8. DIALOG_HELP=2
  9. DIALOG_EXTRA=3
  10. DIALOG_ITEM_HELP=4
  11. DIALOG_ESC=255
  12.  
  13. exec 3<>file
  14. dialog --output-fd 3 \
  15. --clear \
  16. --title "Delete file" \
  17. --backtitle "Linux Shell Script Tutorial Example" \
  18. --yesno "Are you sure you want to permanently delete \"/tmp/foo.txt\"?" 7 60
  19.  
  20. echo "Never Gona Go Here"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement