From 92c767c45adb0801913b72675d4afa7bfa0b2e57 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 9 Feb 2013 21:07:34 +0100 Subject: [PATCH] bin/mv-p: Rewrap for better readability. --- bin/mv-p | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/mv-p b/bin/mv-p index 2faade8..f962087 100755 --- a/bin/mv-p +++ b/bin/mv-p @@ -3,7 +3,7 @@ # Wrapper command for `mv` which creates the target directory before moving # the file there. -# Copyright (C) 2011-2012 Simon Ruderich +# Copyright (C) 2011-2013 Simon Ruderich # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -20,7 +20,9 @@ # Get last argument. -for last; do :; done +for last; do + : +done mkdir -p "`dirname "$last"`" \ && mv "$@" -- 2.45.2