From 82a00b59295a4542f16050c6adb5d19900d36a04 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Fri, 10 Jul 2020 17:48:05 +0700 Subject: [PATCH] Show error if no argument is supplied to run command --- umbrel-dev | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/umbrel-dev b/umbrel-dev index f92f1cd..93e4227 100755 --- a/umbrel-dev +++ b/umbrel-dev @@ -91,6 +91,10 @@ fi # Run a command inside the development VM if [[ "$command" = "run" ]]; then + if [ -z ${2+x} ]; then + echo "A second argument is required!" + exit 1 + fi run "$2" exit fi