mirror of
https://github.com/AlexMacocian/ServerManagementUtils.git
synced 2026-07-15 15:19:58 +00:00
Fix scripts to require 3 parameters for install action
This commit is contained in:
@@ -220,8 +220,8 @@ Main() {
|
||||
|
||||
case "$action" in
|
||||
install)
|
||||
if [[ $# -ne 3 ]]; then
|
||||
LogError "Install command requires 2 parameters: user, password"
|
||||
if [[ $# -ne 4 ]]; then
|
||||
LogError "Install command requires 3 parameters: user, password, host"
|
||||
ShowUsage
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -245,8 +245,8 @@ Main() {
|
||||
|
||||
case "$action" in
|
||||
install)
|
||||
if [[ $# -ne 3 ]]; then
|
||||
LogError "Install command requires 2 parameters: user, password"
|
||||
if [[ $# -ne 4 ]]; then
|
||||
LogError "Install command requires 3 parameters: user, password, host"
|
||||
ShowUsage
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -220,8 +220,8 @@ Main() {
|
||||
|
||||
case "$action" in
|
||||
install)
|
||||
if [[ $# -ne 3 ]]; then
|
||||
LogError "Install command requires 2 parameters: user, password"
|
||||
if [[ $# -ne 4 ]]; then
|
||||
LogError "Install command requires 3 parameters: user, password, host"
|
||||
ShowUsage
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user