From a0d93f179929c7a7fdf87b38d9c88d90c8ae80f8 Mon Sep 17 00:00:00 2001 From: Armin Briegel <1933192+scriptingosx@users.noreply.github.com> Date: Wed, 26 Aug 2020 20:05:39 +0200 Subject: [PATCH] added valuesfromarguments label so download info can be provided entirely from arguments --- Installomator.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Installomator.sh b/Installomator.sh index 6a7f957..9f6bdf4 100755 --- a/Installomator.sh +++ b/Installomator.sh @@ -1370,6 +1370,27 @@ microsoftdefenderatp) updateToolArguments=( --install --apps WDAV00 ) ;; +# this description is so you can provide all variables as arguments +# it will only check if the required variables are setting +valuesfromarguments) + if [[ -z $name ]]; then + printlog "need to provide 'name'" + exit 1 + fi + if [[ -z $type ]]; then + printlog "need to provide 'type'" + exit 1 + fi + if [[ -z $downloadURL ]]; then + printlog "need to provide 'downloadURL'" + exit 1 + fi + if [[ -z $expectedTeamID ]]; then + printlog "need to provide 'expectedTeamID'" + exit 1 + fi + ;; + # these descriptions exist for testing and are intentionally broken brokendownloadurl)