comparison bin/moefetch @ 305:21b86001b0c5

[moefetch] Added basic safeguard
author Edho Arief <edho@myconan.net>
date Wed, 15 Feb 2012 16:21:11 +0300
parents b90ebadbfd5d
children 110d50856dde
comparison
equal deleted inserted replaced
302:b90ebadbfd5d 305:21b86001b0c5
32 # Leave empty to use whatever folder you're running this at 32 # Leave empty to use whatever folder you're running this at
33 BASE_DIR= 33 BASE_DIR=
34 34
35 # not user modifiable from here 35 # not user modifiable from here
36 36
37 # stop on any error
38 set -e
39 # ensures all variables initialized
40 set -u
37 useragent="Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20100101 Firefox/10.0" 41 useragent="Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0) Gecko/20100101 Firefox/10.0"
38 42
39 # useless welcome message. Also version 43 # useless welcome message. Also version
40 msg_welcome() { 44 msg_welcome() {
41 echo "moefetch ${_version} 45 echo "moefetch ${_version}