aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-05-11 23:53:32 +0200
committerThomas Lange <code@nerdmind.de>2021-05-11 23:53:32 +0200
commitac03eb98003e91c7e2a551d1cc26f6ec19bb48da (patch)
tree7075710bc6cd10828976a459c55aa377c089c64d
parent33b1237a3cf668828dc2842d0c9cadddb8cfb299 (diff)
downloadcertdeploy-ac03eb98003e91c7e2a551d1cc26f6ec19bb48da.tar.gz
certdeploy-ac03eb98003e91c7e2a551d1cc26f6ec19bb48da.tar.xz
certdeploy-ac03eb98003e91c7e2a551d1cc26f6ec19bb48da.zip
Redirect error messages to stderr
-rwxr-xr-xcertdeploy10
1 files changed, 5 insertions, 5 deletions
diff --git a/certdeploy b/certdeploy
index ed6bc02..24eb79f 100755
--- a/certdeploy
+++ b/certdeploy
@@ -66,7 +66,7 @@ fi
#===============================================================================
# Check if argument presence-validation errors occurred
#===============================================================================
-[ ! -z "$argument_errors_occurred" ] && echo "Aborting ..." && exit 1
+[ ! -z "$argument_errors_occurred" ] && echo "Aborting ..." >&2 && exit 1
#===============================================================================
# Define {source|target} directory path variable
@@ -126,8 +126,8 @@ TARGET_PATH_F="${TARGET_PATH%/}/${TARGET_FILENAME_F}"
#===============================================================================
if [ ! -d "$SOURCE_PATH" ] || [ ! -r "$SOURCE_PATH" ]
then
- echo "Directory »$SOURCE_PATH« doesn't exists or isn't readable."
- echo "Aborting ..." && exit 1
+ echo "Directory »$SOURCE_PATH« doesn't exists or isn't readable." >&2
+ echo "Aborting ..." >&2 && exit 1
fi
#===============================================================================
@@ -137,8 +137,8 @@ for file in "$SOURCE_PATH_K" "$SOURCE_PATH_I" "$SOURCE_PATH_C" "$SOURCE_PATH_F"
do
if [ ! -f "$file" ] || [ ! -r "$file" ]
then
- echo "File »$file« doesn't exists or isn't readable."
- echo "Aborting ..." && exit 1
+ echo "File »$file« doesn't exists or isn't readable." >&2
+ echo "Aborting ..." >&2 && exit 1
fi
done