From 9d5fd390dc2375cb7791d358b4cbdacbd634b74c Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Fri, 27 May 2005 12:03:39 +0000 Subject: [PATCH] Bugfixes. --- scripts/backup.sh.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/backup.sh.in b/scripts/backup.sh.in index 9999517..0862427 100644 --- a/scripts/backup.sh.in +++ b/scripts/backup.sh.in @@ -172,17 +172,18 @@ init_common() { if [ \( x"$BACKUP_DIRS" = x \) -a \( x"$BACKUP_FILES" = x \) ]; then bailout "Neither BACKUP_DIRS nor BACKUP_FILES specified" fi - if [ -n "$RSH" ]; then + if [ -z "$RSH" ]; then RSH=rsh MT_RSH_OPTION= else MT_RSH_OPTION="--rsh-command=$RSH" fi - if [ -n $TAPE_FILE ]; then + if [ -z "$TAPE_FILE" ]; then TAPE_FILE=/dev/tape fi # If TAPE_FILE is a remote device, update mt invocation accordingly + : ${MT:=mt} case $TAPE_FILE in *:*) MT="$MT $MT_RSH_OPTION";; *) ;; -- 2.45.2