Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Description: Check if we have a module
- --- ./makemod~ 2016-05-09 20:28:07.549872042 +0300
- +++ ./makemod 2016-05-09 20:41:58.859807984 +0300
- @@ -8,6 +8,22 @@
- exit 1
- fi
- +if [ -f "$2" ]; then
- + read -p "-- This folder already contains a file $2.
- + Do you want to replace the existing file? (y/n) [n] " yn
- + if [ $yn"n" = "yn" ]; then
- + rm "$2"
- + sleep 1
- + if [ -f "$2" ]; then
- + echo "-- We leave a file $2 for the admin to consider."
- + exit 1
- + fi
- + else
- + echo "-- Returning to the shell."
- + exit 1
- + fi
- +fi
- +
- # .sxz extension uses xz compression:
- COMPR="xz"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement