From 51cd0951daa583e40637c06a53278abb439b1f78 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Tue, 22 Feb 2011 22:34:43 +0100 Subject: ftpsync what, oh what, did i smoke when using ``? use $() damnit. Signed-off-by: Joerg Jaspert --- bin/ftpsync | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/ftpsync b/bin/ftpsync index 1f815fe..c8a5a54 100755 --- a/bin/ftpsync +++ b/bin/ftpsync @@ -169,7 +169,7 @@ check_rsync() { # As what are we called? -NAME="`basename $0`" +NAME="$(basename $0)" # The original command line arguments need to be saved! if [ $# -gt 0 ]; then ORIGINAL_COMMAND=$* @@ -236,7 +236,7 @@ fi ######################################################################## # There should be nothing to edit here, use the config file # ######################################################################## -MIRRORNAME=${MIRRORNAME:-`hostname -f`} +MIRRORNAME=${MIRRORNAME:-$(hostname -f)} # Where to put logfiles in LOGDIR=${LOGDIR:-"${BASEDIR}/log"} # Our own logfile @@ -522,7 +522,7 @@ done # We only update our tracefile when we had a stage2 or an all sync. # Otherwise we would update it after stage1 already, which is wrong. if [ "xtruex" = "x${SYNCSTAGE2}x" ] || [ "xtruex" = "x${SYNCALL}x" ]; then - if [ -d "`dirname "${TO}/${TRACE}"`" ]; then + if [ -d "$(dirname "${TO}/${TRACE}")" ]; then LC_ALL=POSIX LANG=POSIX date -u > "${TO}/${TRACE}" echo "Used ftpsync version: ${VERSION}" >> "${TO}/${TRACE}" echo "Running on host: $(hostname -f)" >> "${TO}/${TRACE}" -- cgit v1.2.3