summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJoerg Jaspert <joerg@debian.org>2011-02-22 22:34:43 +0100
committerJoerg Jaspert <joerg@debian.org>2011-02-22 22:34:43 +0100
commit51cd0951daa583e40637c06a53278abb439b1f78 (patch)
treedb19dd112cb60d7849e7270db2da082ec61b6db5 /bin
parentc1aa74d28eefa38d5a513ffee52b22bc63652579 (diff)
ftpsync
what, oh what, did i smoke when using ``? use $() damnit. Signed-off-by: Joerg Jaspert <joerg@debian.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ftpsync6
1 files 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}"