Check if file exists when using the launcher - reed-alert - Lightweight agentless alerting system for server
HTML git clone git://bitreich.org/reed-alert/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/reed-alert/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit 121e59664b4e2a1852fd95abbac82689d3f7d7b6
DIR parent 95b8e54faec4258fb7a8417ad4d6274617082b61
HTML Author: Solene Rapenne <solene@perso.pw>
Date: Wed, 7 Nov 2018 11:46:27 +0100
Check if file exists when using the launcher
Diffstat:
M reed-alert.in | 6 ++++++
1 file changed, 6 insertions(+), 0 deletions(-)
---
DIR diff --git a/reed-alert.in b/reed-alert.in
@@ -32,6 +32,12 @@ then
exit 2
fi
+if [ ! -f "$1" ]
+then
+ echo "$1 not found"
+ exit 3
+fi
+
# prevent interpreter output when loading files
$LISP $PARAMS --eval \
"(let ((*standard-output* (make-broadcast-stream)))