summaryrefslogtreecommitdiffstats
path: root/mltk
diff options
context:
space:
mode:
authorSimon Rettberg2021-07-09 18:23:24 +0200
committerSimon Rettberg2021-07-09 18:23:24 +0200
commit6343f3c617f053c8a1c0f919d446a35efe2358b6 (patch)
tree6235ace8699e1eac42db9e6ff78ee1c07c38098e /mltk
parentCleanup, rename some variables (diff)
downloadmltk-6343f3c617f053c8a1c0f919d446a35efe2358b6.tar.gz
mltk-6343f3c617f053c8a1c0f919d446a35efe2358b6.tar.xz
mltk-6343f3c617f053c8a1c0f919d446a35efe2358b6.zip
Add warning if no action is specified
Diffstat (limited to 'mltk')
-rwxr-xr-xmltk3
1 files changed, 2 insertions, 1 deletions
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