I am batch converting some pictures with a quick and dirty bash script using ufraw :
IFS=$'\n'
PICS="/media/disk/kevin/Images/";
for pic in $(find $PICS -name "*CR2");
do
ufraw-batch $pic --out-type jpg --size=2048 --overwrite --out-path=$PICS;
rm -f $pic
done;
IFS=" ";
It's running fine with the usual rights, but if I run it with :
sudo ./convert.sh
I got this strange error :
find: "/media/disk/kevi" : no such file or directory.
I made it :
IFS=$'\n'
PICS="/media/disk/kevin/Images/";
echo PICS;
Then I got surprisingly :
/media/disk/kevi /Images/
WTF ?