diff --git a/script.sh b/script.sh index a3f4edc..cc8f447 100755 --- a/script.sh +++ b/script.sh @@ -1,15 +1,12 @@ #!/bin/bash -##Daca numarul total de argumente are mai putin de 2 argumente: -if [ $# -lt 2 ]; then - echo "Usage: ./script.sh " + +if [ $# -eq 0 ]; then + echo "Usage: ./script.sh " exit 1 fi -first_name="$1" -last_name="$2" - -echo "Hello, $first_name $last_name!" +echo "Hello, all of you: $@"