Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.32 KB | None | 0 0
  1.         // If it was: if[[$fileAction=="y"]]; then - This line would not work because of spaces
  2.         if [[ $fileAction == "y" ]]; then
  3.             echo "Deleting file $fileInfo..."
  4.             rm $fileInfo
  5.         elif [[ $fileAction == "q" ]]; then
  6.             echo "You chose not to delete the file!"
  7.         else
  8.             echo "Wrong response you chose $fileAction!"
  9.         fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement