From 7e27ca0f3dcb7e7cb7fafa321d7a38a4a21dac58 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 15 Nov 2006 00:01:19 +0100 Subject: [PATCH] More quote changes --- ccollect.sh | 8 ++++---- .../{testsource1 => source with spaces}/destination | 0 conf/sources/{testsource1 => source with spaces}/exclude | 0 .../{testsource1 => source with spaces}/intervalls/daily | 0 conf/sources/{testsource1 => source with spaces}/source | 0 conf/sources/{testsource1 => source with spaces}/verbose | 0 6 files changed, 4 insertions(+), 4 deletions(-) rename conf/sources/{testsource1 => source with spaces}/destination (100%) rename conf/sources/{testsource1 => source with spaces}/exclude (100%) rename conf/sources/{testsource1 => source with spaces}/intervalls/daily (100%) rename conf/sources/{testsource1 => source with spaces}/source (100%) rename conf/sources/{testsource1 => source with spaces}/verbose (100%) diff --git a/ccollect.sh b/ccollect.sh index 1e4312f..f21e430 100755 --- a/ccollect.sh +++ b/ccollect.sh @@ -192,7 +192,7 @@ while [ "$i" -lt "$no_sources" ]; do # # Get current source # - eval name=\$source_${i} + eval name=\"\$source_${i}\" i=$(($i+1)) export name @@ -269,11 +269,11 @@ while [ "$i" -lt "$no_sources" ]; do if [ -x "$c_pre_exec" ]; then echo "Executing ${c_pre_exec} ..." "$c_pre_exec" - ret=$? + ret="$?" echo "Finished ${c_pre_exec}." - if [ $ret -ne 0 ]; then - echo "$c_pre_exec failed, aborting backup." + if [ "$ret" -ne 0 ]; then + echo "$c_pre_exec failed. Skipping" exit 1 fi fi diff --git a/conf/sources/testsource1/destination b/conf/sources/source with spaces/destination similarity index 100% rename from conf/sources/testsource1/destination rename to conf/sources/source with spaces/destination diff --git a/conf/sources/testsource1/exclude b/conf/sources/source with spaces/exclude similarity index 100% rename from conf/sources/testsource1/exclude rename to conf/sources/source with spaces/exclude diff --git a/conf/sources/testsource1/intervalls/daily b/conf/sources/source with spaces/intervalls/daily similarity index 100% rename from conf/sources/testsource1/intervalls/daily rename to conf/sources/source with spaces/intervalls/daily diff --git a/conf/sources/testsource1/source b/conf/sources/source with spaces/source similarity index 100% rename from conf/sources/testsource1/source rename to conf/sources/source with spaces/source diff --git a/conf/sources/testsource1/verbose b/conf/sources/source with spaces/verbose similarity index 100% rename from conf/sources/testsource1/verbose rename to conf/sources/source with spaces/verbose