From d6153ad67ce731d8015c4ab2c8fc2fc4f2628db5 Mon Sep 17 00:00:00 2001 From: Jochen Welzel Date: Mon, 18 Jan 2021 17:51:01 +0100 Subject: [PATCH] corrected typo --- scp_and_reload.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scp_and_reload.sh b/scp_and_reload.sh index 9fea095..15a2671 100644 --- a/scp_and_reload.sh +++ b/scp_and_reload.sh @@ -13,14 +13,14 @@ for file in $CHFILENAMES; do echo "SCP of $file started" scp $file "$PLUGIN_USER"@"$PLUGIN_HOSTS":"$PLUGIN_TARGET"/$file if [ $? -ne 0 ]; then - echo "SCP failed" > &2 + echo "SCP failed" 1>&2 exit 1 fi ZONE=$(echo $file | sed 's/\.zone//') echo "Reload $ZONE zone" ssh "PLUGIN_USER"@"$PLUGIN_HOSTS" nsd-control reload $ZONE if [ $? -ne 0 ]; then - echo "Reload of zone failed" > &2 + echo "Reload of zone failed" 1>&2 exit 1 fi else