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