aboutsummaryrefslogtreecommitdiff
path: root/mvln
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-05-29 15:16:11 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-05-29 15:16:11 -0300
commit1625ef08498157a57c183563e8f5ee0bd8911f5e (patch)
treeff1b2a19865af17b04f7f98d36219c7159295e87 /mvln
parent22add0bd4883dc763361e4484fc3d38527862831 (diff)
downloadscripts-1625ef08498157a57c183563e8f5ee0bd8911f5e.tar.gz
scripts-1625ef08498157a57c183563e8f5ee0bd8911f5e.tar.bz2
Using mv at mvln
Diffstat (limited to 'mvln')
-rwxr-xr-xmvln4
1 files changed, 2 insertions, 2 deletions
diff --git a/mvln b/mvln
index fcc6cfd..184178e 100755
--- 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"