diff options
author | Thomas Lange <code@nerdmind.de> | 2021-05-11 23:53:32 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2021-05-11 23:53:32 +0200 |
commit | ac03eb98003e91c7e2a551d1cc26f6ec19bb48da (patch) | |
tree | 7075710bc6cd10828976a459c55aa377c089c64d | |
parent | 33b1237a3cf668828dc2842d0c9cadddb8cfb299 (diff) | |
download | certdeploy-ac03eb98003e91c7e2a551d1cc26f6ec19bb48da.tar.gz certdeploy-ac03eb98003e91c7e2a551d1cc26f6ec19bb48da.tar.xz certdeploy-ac03eb98003e91c7e2a551d1cc26f6ec19bb48da.zip |
Redirect error messages to stderr
-rwxr-xr-x | certdeploy | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |