From 989030ef43cf2010a13256a2aabc9693f54336c8 Mon Sep 17 00:00:00 2001 From: Oliver Ladner Date: Thu, 6 Jan 2011 15:46:13 +0100 Subject: [PATCH] comment now in the right place --- delicious_backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/delicious_backup.sh b/delicious_backup.sh index bd137a5..2fc5985 100755 --- a/delicious_backup.sh +++ b/delicious_backup.sh @@ -16,10 +16,10 @@ if [ ! -f $BKP_FILE ]; then curl -s https://$DEL_USER:$DEL_PASS@$API_URL > $BKP_FILE else curl -s https://$DEL_USER:$DEL_PASS@$API_URL > $BKP_FILE.tmp - # if XML is valid, move to final destination if [ $(xmlstarlet validate $BKP_FILE.tmp > /dev/null 2>&1; echo $?) -gt 0 ]; then rm $BKP_FILE.tmp echo "Downloaded XML file not valid. Previous backup preserved." + # if XML is valid, move to final destination else mv $BKP_FILE.tmp $BKP_FILE fi