Search Results

Search: Posts Made By: JKMlol
9,757
Posted By pseudocoder
Try adding this between DIR= and for: ls...
Try adding this between DIR= and for:
ls $DIR/*.jpg >/dev/null 2>&1
if [ $? == 0 ]; then
and append following to the end of your script:
else
echo "No jpg files in $DIR"
fi
9,757
Posted By frans
:eek: It didn't but i've corrected it so it does....
:eek: It didn't but i've corrected it so it does. :)
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 04:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy