]> gitweb.fluxo.info Git - scripts.git/commitdiff
Using mv at mvln
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 29 May 2014 18:16:11 +0000 (15:16 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 29 May 2014 18:16:11 +0000 (15:16 -0300)
mvln

diff --git a/mvln b/mvln
index fcc6cfde37ebcf674d6197db246a00d598625ed4..184178e5a4024b2f079f36a560b6b3fecb51cca4 100755 (executable)
--- a/mvln
+++ b/mvln
@@ -14,5 +14,5 @@ if [ ! -e "$1" ]; then
 fi
 
 # Proceed
-mkdir -p `dirname $2`
-cp -a "$1" "$2" && ln -sf "$2" "$1"
+mkdir -p `dirname "$2"`
+mv "$1" "$2" && ln -s "$2" "$1"