main #1

Merged
liana merged 11 commits from main into first-script 2025-12-16 18:31:39 +00:00
Showing only changes of commit 08eba2eccc - Show all commits

View File

@@ -1,5 +1,40 @@
#!/bin/bash #!/bin/bash
##1
if [ -z "$1" ]; then
echo "Usage: ./script.sh <name>"
exit 1
fi
name="$1"
echo "Hello, $name!"
echo "Welcome to DevOps Bash scripting."
##2
if [-z "$1"]; then
echo "Usage: ./script.sh <name>"
exit 1
fi
name="$1"
if ["$name == "Liana"]; then
echo "Hello $name! You ar awesome!"
else
echo "Hello, $name!"
fi
exit 0
name="Liana" name="Liana"
course="DevOps Bash" course="DevOps Bash"