Fix minor error

This commit is contained in:
Christoph 2018-05-08 03:11:14 +02:00
parent 6bbce9d7d9
commit 0ff8910ab7

View File

@ -449,7 +449,10 @@ fi
if [[ -z "$(which realpath)" ]]; then if [[ -z "$(which realpath)" ]]; then
fatal 'It seems "realpath" is not installed, but needed!' fatal 'It seems "realpath" is not installed, but needed!'
fi fi
n Main Script
# ==========
# - Begin Main Script
# ========== # ==========
# ---------- # ----------
@ -557,7 +560,7 @@ if $terminal ; then
echo "" echo ""
fi fi
declare -i remote_dir_count="$(ssh gw-replacement.wf.netz "ls -A ${_network}-config 2> /dev/null | wc -l")" declare -i remote_dir_count="$(ssh $REMOTE_HOST "ls -A ${_network}-config 2> /dev/null | wc -l")"
if [[ $remote_dir_count -lt 1 ]]; then if [[ $remote_dir_count -lt 1 ]]; then
fatal "Remote Directory is empty. Run \033[1mcopy_gateway-config.sh ${_network}\033[m on remote host first." fatal "Remote Directory is empty. Run \033[1mcopy_gateway-config.sh ${_network}\033[m on remote host first."
fi fi
@ -752,4 +755,4 @@ cat $OFFICE_DIR/README.txt
#rm /tmp/README$$ #rm /tmp/README$$
exit 0 clean_up 0