move variabledefinition
This commit is contained in:
parent
18bd1a019a
commit
0b6f6f2a2e
1 changed files with 2 additions and 2 deletions
|
@ -2,8 +2,6 @@
|
||||||
|
|
||||||
[ type loginfo > /dev/null 2>&1 ] || . $(dirname $0)/../logging
|
[ type loginfo > /dev/null 2>&1 ] || . $(dirname $0)/../logging
|
||||||
|
|
||||||
export SCRIPT_LOG=./$(basename $0).log
|
|
||||||
export LOGFILE=./$(basename $0).move.log
|
|
||||||
[ -z "${move+x}" ] && move=false
|
[ -z "${move+x}" ] && move=false
|
||||||
[ -z "${forcedate+x}" ] && forcedate=false
|
[ -z "${forcedate+x}" ] && forcedate=false
|
||||||
[ -z "${setdate+x}" ] && setdate=true
|
[ -z "${setdate+x}" ] && setdate=true
|
||||||
|
@ -331,6 +329,8 @@ else
|
||||||
all=$(find ${maxdepth:+-maxdepth} ${maxdepth:+$maxdepth} -type f |grep -i ".jpg$\|.jpeg$\|.mp4$\|.mov$\|.png$\|.3gp$\|.gif$"|wc -l)
|
all=$(find ${maxdepth:+-maxdepth} ${maxdepth:+$maxdepth} -type f |grep -i ".jpg$\|.jpeg$\|.mp4$\|.mov$\|.png$\|.3gp$\|.gif$"|wc -l)
|
||||||
find ${maxdepth:+-maxdepth} ${maxdepth:+$maxdepth} -type f |grep -i ".jpg$\|.jpeg$\|.mp4$\|.mov$\|.png$\|.3gp$\|.gif$"|while read file; do
|
find ${maxdepth:+-maxdepth} ${maxdepth:+$maxdepth} -type f |grep -i ".jpg$\|.jpeg$\|.mp4$\|.mov$\|.png$\|.3gp$\|.gif$"|while read file; do
|
||||||
let "i=i+1"
|
let "i=i+1"
|
||||||
|
export SCRIPT_LOG=./$(basename $0).log
|
||||||
|
export LOGFILE=./$(basename $0).move.log
|
||||||
loginfo "$i/$all"
|
loginfo "$i/$all"
|
||||||
run_fix "$file"
|
run_fix "$file"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue