I got a comment that my SmugMug uploader script had broken after the last upgrade. It turned out that my XML parsing with sed wasn’t exactly resistant to change, so the wrong field was printed from the returned XML.
I’ve changed the XML parsing to use awk instead, hopefully in a way that’s a little more resistant to changes in the format (although it’s not exactly perfect, but I don’t want to involve a real XML parser).
The new version is 1.1, and can be downloaded here.
Tech Life of Recht » Updated smugup.sh script
Updated smugup.sh script
- February 10th, 2008
- 11:35 pm
3 People had this to say...
- recht
- February 17th, 2008
- 2:05 pm
Maybe /bin/sh doesn’t point to bash? Try running the script with bash directly and see if that helps.
- patrick
- June 15th, 2008
- 5:12 pm
This utility is really helpful. To fix the SSL certificate problem, I ran:
$ mv /usr/share/curl/curl-ca-bundle.crt /usr/share/curl/curl-ca-bundle.crt.OLD
$ curl http://curl.haxx.se/ca/cacert.pem > /usr/share/curl/curl-ca-bundle.crt
Then, to make it work on cygwin I changed the OUT=`tempfile` line to OUT=”/tmp/smug$$.tmp”. (For whatever reason, Cygwin doesn’t have “tempfile”.)
Thanks again!




./smugup-1.1.sh: 35: Syntax error: Bad substitution