diff options
author | Erich Eckner <git@eckner.net> | 2019-07-27 10:04:24 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-07-27 10:04:24 +0200 |
commit | 63c5c3ce2dafc097f7e6ec5157981eb5a656de15 (patch) | |
tree | 1f7129f474f3109a717f7e431cf611d9162cbbc2 | |
parent | 70599b10c5863210b9017abed94fc7fc8ece1270 (diff) | |
download | hardlinkedBackups-63c5c3ce2dafc097f7e6ec5157981eb5a656de15.tar.xz |
backup: fail with 11 when not reachable by any ip version
-rwxr-xr-x | backup.in | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |