scripts

My personal collection of scripts
git clone git://src.gearsix.net/scripts
Log | Files | Refs | Atom | README | LICENSE

commit b5fc7e5f01ff876e2e96f350f8ad2db0a97b1358
parent ffd44542c0dd4824d8233638676c27fe6d09631f
Author: GeaRSiX <gearsix@tuta.io>
Date:   Tue, 23 Jun 2020 00:04:41 +0100

escaped filepaths in mkdmv

Diffstat:
Msrc/mkdmv.sh | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/mkdmv.sh b/src/mkdmv.sh @@ -4,13 +4,13 @@ # e.g.$ mkdmv ~/new-dir ~/var/tmp/file* #mkdir $1 -dir=$1; -mkdir -p $dir +dir="$1"; +mkdir -p "$dir" shift; #cp files ($2...$n) into $1 for file in $@; do - mv $file $dir; + mv "$file" "$dir"; shift; done