Mercurial > ec-dotfiles
changeset 305:21b86001b0c5
[moefetch] Added basic safeguard
| author | Edho Arief <edho@myconan.net> |
|---|---|
| date | Wed, 15 Feb 2012 16:21:11 +0300 |
| parents | b90ebadbfd5d |
| children | 3e8dfad7cacc |
| files | bin/moefetch |
| diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/moefetch Thu Feb 09 09:12:18 2012 +0700 +++ b/bin/moefetch Wed Feb 15 16:21:11 2012 +0300 @@ -34,6 +34,10 @@ # not user modifiable from here +# stop on any error +set -e +# ensures all variables initialized +set -u useragent="Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20100101 Firefox/10.0" # useless welcome message. Also version
