changeset 306:3e8dfad7cacc

Merge
author Edho Arief <edho@myconan.net>
date Sun, 19 Feb 2012 06:26:52 +0000
parents 21b86001b0c5 (diff) e4208bf9c585 (current diff)
children 81bfcb3015bd
files
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/bin/moefetch	Thu Feb 16 17:48:04 2012 +0700
+++ b/bin/moefetch	Sun Feb 19 06:26:52 2012 +0000
@@ -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