add disablemotd as param
All checks were successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/master Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/next Pipeline was successful
ci/woodpecker/push/master Pipeline was successful
ci/woodpecker/pr/next Pipeline was successful

This commit is contained in:
OCram85 2022-11-08 15:37:37 +01:00
parent f4750a8ae7
commit 296e2c3dd3
2 changed files with 5 additions and 2 deletions

View File

@ -14,7 +14,7 @@ function showHelp() {
nodejs Installs latest NodeJs LTS version.
powershell Installs latest PowerShell LTS version.
-h Prints this help messagee.
disableMotd Disables hint in new bash terminal
disablemotd Disables hint in new bash terminal
Example 1: install-devruntime dotnet
Example 2: install devruntime golang nodejs
HELP
@ -130,6 +130,9 @@ function main() {
instNodeJs
elif [[ "$i" == "powershell" ]]; then
instPwsh
elif [[ "$i" == "disablemotd" ]]; then
disableMotd
exit 0
else
sayE "Unknown parameter value given!($i)."
showHelp

View File

@ -1,3 +1,3 @@
#!/bin/bash
complete -W "dotnet golang nodejs powershell -h" install-devruntime
complete -W "disablemotd dotnet golang nodejs powershell -h" install-devruntime