]> Dogcows Code - chaz/tar/commitdiff
Bugfixes.
authorSergey Poznyakoff <gray@gnu.org.ua>
Fri, 27 May 2005 12:03:39 +0000 (12:03 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Fri, 27 May 2005 12:03:39 +0000 (12:03 +0000)
scripts/backup.sh.in

index 9999517d7eea639d9d91345574c85d2145cd16f4..08624278c0d4e9ffba1b0978f74c496031291b8f 100644 (file)
@@ -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";;
     *)   ;;
This page took 0.024161 seconds and 4 git commands to generate.