From 121e59664b4e2a1852fd95abbac82689d3f7d7b6 Mon Sep 17 00:00:00 2001 From: Solene Rapenne Date: Wed, 7 Nov 2018 11:46:27 +0100 Subject: [PATCH] Check if file exists when using the launcher --- reed-alert.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/reed-alert.in b/reed-alert.in index c57ec16..ce3aab8 100755 --- 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)))