From 6343f3c617f053c8a1c0f919d446a35efe2358b6 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 9 Jul 2021 18:23:24 +0200 Subject: Add warning if no action is specified --- mltk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mltk') diff --git a/mltk b/mltk index cdac8cc7..5e227495 100755 --- a/mltk +++ b/mltk @@ -243,7 +243,8 @@ read_params() { done # exit if no command - if [ -z "$MODE_CLEAN" ] || [ -z "$MODE_BUILD" ] || [ -z "$MODE_EXPORT" ]; then + if [ -z "$MODE_CLEAN" ] && [ -z "$MODE_BUILD" ] && [ -z "$MODE_EXPORT" ]; then + pwarning "No action specified" print_usage exit 1 fi -- cgit v1.2.3-55-g7522