diff options
author | Simon Rettberg | 2021-07-09 18:23:24 +0200 |
---|---|---|
committer | Simon Rettberg | 2021-07-09 18:23:24 +0200 |
commit | 6343f3c617f053c8a1c0f919d446a35efe2358b6 (patch) | |
tree | 6235ace8699e1eac42db9e6ff78ee1c07c38098e /mltk | |
parent | Cleanup, rename some variables (diff) | |
download | mltk-6343f3c617f053c8a1c0f919d446a35efe2358b6.tar.gz mltk-6343f3c617f053c8a1c0f919d446a35efe2358b6.tar.xz mltk-6343f3c617f053c8a1c0f919d446a35efe2358b6.zip |
Add warning if no action is specified
Diffstat (limited to 'mltk')
-rwxr-xr-x | mltk | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |