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 68d1d59b16 - Show all commits

View File

@@ -2,7 +2,7 @@
#!/bin/bash
##1
if [ -z "$1" ]; then
echo "Usage: ./script.sh <name>"
echo "Usage: ./script.sh $name"
exit 1
fi
@@ -12,35 +12,8 @@ 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"
course="DevOps Bash"
echo "Hello, $name!"
echo "You are learning $course"