diff --git a/setup_managed_node.sh b/setup_managed_node.sh index 98df713..60372c2 100644 --- a/setup_managed_node.sh +++ b/setup_managed_node.sh @@ -22,7 +22,7 @@ install_cmd() { local cmd="$1" - local package="${2:-1}" + local package="${2:-$1}" if ! command -v "$cmd" >/dev/null 2>&1; then if command -v apt-get >/dev/null 2>&1; then if [[ ! $apt_update_status ]]; then