summaryrefslogtreecommitdiff
path: root/backup.in
diff options
context:
space:
mode:
Diffstat (limited to 'backup.in')
-rwxr-xr-xbackup.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/backup.in b/backup.in
index 6e08d9e..cda64f8 100755
--- a/backup.in
+++ b/backup.in
@@ -136,6 +136,10 @@ elif [ "$#" -eq 4 ]; then
| uniq -d \
| tail -n1
)
+ if [ -z ${ipVer} ]; then
+ >&2 echo 'not reachable'
+ exit 11
+ fi
if [ ${ipVer} -eq 4 ]; then
localAddress='127.0.0.1'
elif [ ${ipVer} -eq 6 ]; then