added valuesfromarguments label so download info can be provided entirely from arguments

This commit is contained in:
Armin Briegel
2020-08-26 20:05:39 +02:00
parent 138301f61e
commit a0d93f1799

View File

@@ -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)