From 31201da4275291e2002de3281a8e828f7ad43c72 Mon Sep 17 00:00:00 2001 From: tosu Date: Sat, 11 Feb 2023 15:45:20 +0100 Subject: [PATCH] Add error handling in bash wrapper --- woxi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/woxi b/woxi index 7f713ee..a2ec809 100755 --- a/woxi +++ b/woxi @@ -2,4 +2,8 @@ W=$(which woxi.py) -$W $@ | jq +if [ -n "${W}" ]; then + $W $@ | jq +else + printf "Couldn't find woxi.py" +fi