From dc5aec71ed641c0a459685c0de4b541d34305cb4 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 7 Aug 2007 11:16:58 +0200 Subject: [PATCH] Change for basedir, argv --- tools/create_source2.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/create_source2.sh b/tools/create_source2.sh index 6df7b78..842afb6 100755 --- a/tools/create_source2.sh +++ b/tools/create_source2.sh @@ -25,7 +25,7 @@ _exit_err() } # argv -if [ $# -ne 3 ]; then +if [ $# -ne 2 ]; then _echo " " _echo "Example: \"192.168.42.42\" \"/home/server/backup/\"" _echo " This will create ${CSOURCES}/192.168.42.42 and /home/server/backup/192.168.42.42." @@ -39,7 +39,7 @@ name="$1" basedir="$2" fullname="${CSOURCES}/${name}" -destination=${basedir}/${name}" +destination="${basedir}/${name}" # Tests if [ -e "${fullname}" ]; then @@ -47,7 +47,7 @@ if [ -e "${fullname}" ]; then exit 2 fi -_echo "Trying to reach ${source} ..." +_echo "Trying to reach ${name} ..." ping -c1 "${name}" || _exit_err "Cannot reach ${name}. Aborting." if [ ! -d "${basedir}" ]; then