From: Francois Fleuret Date: Fri, 22 Jul 2011 09:51:11 +0000 (+0200) Subject: Bug fixing. X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=scripts.git;a=commitdiff_plain;h=d8dbad8ba2d8d014d0b0b9f3cfc3c4c62613129b Bug fixing. --- diff --git a/mvdatedir.sh b/mvdatedir.sh index 1b7d789..2bc58d2 100755 --- a/mvdatedir.sh +++ b/mvdatedir.sh @@ -28,8 +28,8 @@ while [[ "$1" ]]; do dir=$(date -r "$1" +%Y/%b) mkdir -p ${dir} mv "$1" ${dir} - shift else echo "Ignore: $1 is not a regular file." fi + shift done