My script reads as follows
Code:
#!/bin/bash
fg="$1"
route=$(exiftool -XMP:WebStatement "$fg")
if [[ $route ~= "some-website.com" ]]; then
exiv1 -k -dc "$fg"
echo "GD-Jpeg Comment removed."
exit 0
else
picked=$(echo "$route" | cut -d/ -f3)
echo -e "Picture file downloaded from $picked.\nNo need to strip the comment field."
echo "Good bye."
fi
I get SC1009, SC1073, and SC1072 errors. I haven't been researching Shellcheck errors for a while, and I have to admit
I'm more than a little lost on those pages.
Any help would be much appreciated.
Carver