helper: restore run if no param passed
continuous-integration/drone/push Build is passing Details

master
pictuga 2021-12-29 23:35:16 +01:00
parent ecdb74812d
commit 15430a2b83
1 changed files with 4 additions and 1 deletions

View File

@ -33,7 +33,10 @@ check() {
python -m morss.crawler http://localhost:${PORT:-8000}/ > /dev/null 2>&1 python -m morss.crawler http://localhost:${PORT:-8000}/ > /dev/null 2>&1
} }
if [ "$1" = "sh" ] || [ "$1" = "bash" ] || command -v "$1" ; then if [ -z "$1" ]; then
run
elif [ "$1" = "sh" ] || [ "$1" = "bash" ] || command -v "$1" ; then
$@ $@
else else