Add error handling in bash wrapper

This commit is contained in:
tosu 2023-02-11 15:45:20 +01:00
parent e70c879d1c
commit 31201da427
1 changed files with 5 additions and 1 deletions

6
woxi
View File

@ -2,4 +2,8 @@
W=$(which woxi.py)
$W $@ | jq
if [ -n "${W}" ]; then
$W $@ | jq
else
printf "Couldn't find woxi.py"
fi