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

diff --git a/mvln b/mvln
index 184178e5a4024b2f079f36a560b6b3fecb51cca4..17ff47cac78296db89fb8e16c13e5974e1973bd1 100755 (executable)
--- a/mvln
+++ b/mvln
@@ -15,4 +15,4 @@ fi
 
 # Proceed
 mkdir -p `dirname "$2"`
-mv "$1" "$2" && ln -s "$2" "$1"
+mv "$1" "$2" && ln -s "$2/`dirname $1`" "$1"