Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo Folder name: "${PWD##*/}"
- if [ "${PWD##*/}" == "sandbox" ]
- then
- echo The folder is indeed named sandbox. Deleting all files. # Please confirm.
- # read -p "Are you sure? " -n 1 -r
- # echo # (optional) move to a new line
- # if [[ $REPLY =~ ^[Yy]$ ]]
- # then
- rm *
- # fi
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement