Bug fixing.
authorFrancois Fleuret <francois@fleuret.org>
Fri, 22 Jul 2011 09:51:11 +0000 (11:51 +0200)
committerFrancois Fleuret <francois@fleuret.org>
Fri, 22 Jul 2011 09:51:11 +0000 (11:51 +0200)
mvdatedir.sh

index 1b7d789..2bc58d2 100755 (executable)
@@ -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