whitespace bug fixed

This commit is contained in:
makotosan 2020-05-31 16:13:48 +02:00
parent dd2cfa7999
commit 07a7680df8

6
wpfind
View file

@ -7,7 +7,7 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# app version number # app version number
version="0.1.3.1" version="0.1.3.2"
# logfile # logfile
logfile="wpfind.log" logfile="wpfind.log"
touch $logfile touch $logfile
@ -151,7 +151,7 @@ function wpFind () {
if [ "$verbosemode" = "yes" ]; then if [ "$verbosemode" = "yes" ]; then
printf "cp $iMode $pic $outputDir\n" printf "cp $iMode $pic $outputDir\n"
fi fi
cp $iMode $pic $outputDir cp $iMode "$pic" "$outputDir"
date2log=$($date +'%Y-%m-%d %H:%M:%S') date2log=$($date +'%Y-%m-%d %H:%M:%S')
printf "$date2log - cp $iMode $pic $outputDir\n" >> $logfile printf "$date2log - cp $iMode $pic $outputDir\n" >> $logfile
# if move mode # if move mode
@ -160,7 +160,7 @@ function wpFind () {
if [ "$verbosemode" = "yes" ]; then if [ "$verbosemode" = "yes" ]; then
printf "mv $iMode $pic $outputDir\n" printf "mv $iMode $pic $outputDir\n"
fi fi
mv $iMode $pic $outputDir mv $iMode "$pic" "$outputDir"
date2log=$($date +'%Y-%m-%d %H:%M:%S') date2log=$($date +'%Y-%m-%d %H:%M:%S')
printf "$date2log - mv $iMode $pic $outputDir\n" >> $logfile printf "$date2log - mv $iMode $pic $outputDir\n" >> $logfile
fi fi