From 856aed4ee23291972e9595a5f131feb9d4be1b3f Mon Sep 17 00:00:00 2001 From: hackbard Date: Wed, 10 Sep 2003 14:04:55 +0000 Subject: [PATCH] be clever - create the mountpoint first :-o --- backup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/backup.sh b/backup.sh index a1a0f1a..cbed041 100755 --- a/backup.sh +++ b/backup.sh @@ -5,6 +5,7 @@ backup_date=`date | awk '{ print $3"."$2"."$6 }'` host=`hostname` +[ ! -d /mnt/nfs ] && mkdir -p /mnt/nfs # set the backup directory if [ "$host" = "gate" ] ; then -- 2.39.2