dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit aea167ecc75afb6350a9512351dedec5d024bf3d
parent 821cb113427d9b022d060bab0b4f9fd31b331475
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date:   Thu, 15 Jan 2015 12:41:19 +0100

remove empty file if download wasn't successfull

Diffstat:
Mbin/democracy-now-dl | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bin/democracy-now-dl b/bin/democracy-now-dl @@ -46,7 +46,8 @@ wget --quiet --output-document="$OUTNAME$SUFFIX" "$BASEURL$DATE$SUFFIX" if [ $? == 0 ]; then echo "Saved as $OUTNAME$SUFFIX" else - echo "Download failed." + rm $OUTNAME$SUFFIX + echo "Error: Download failed." echo "Try downloading the episode from yesterday by invoking:" echo " $0 -y" exit 1