add overwrite option in mv commend (#38)
author김어진 <kimuj5090@gmail.com>
Sat, 1 Dec 2018 14:14:12 +0000 (23:14 +0900)
committerStefan Imhoff <stefan@imhoff.name>
Sat, 1 Dec 2018 14:14:12 +0000 (15:14 +0100)
setup

diff --git a/setup b/setup
index d35e07bb83c1465c1ba1a6a7834815762b34cb56..fa2ae838d19848f80370fe6cf3a76c2c699bc1f7 100755 (executable)
--- a/setup
+++ b/setup
@@ -56,7 +56,7 @@ install()
         then
           log "Skipping $FILE.bak, file exists..."
         else
-          mv $MV_ARGS "$TARGET/$FILE" "$TARGET/$FILE.bak"
+          mv -f $MV_ARGS "$TARGET/$FILE" "$TARGET/$FILE.bak"
         fi
       done
       log ""