main #1
14
script.sh
14
script.sh
@@ -1,12 +1,16 @@
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
echo "Usage: ./script.sh <names...>"
|
||||
exit 1
|
||||
if [ "$name" == "Liana" ]; then
|
||||
echo "Hello Liana!"
|
||||
exit 0
|
||||
elif [ "$name" == "Admin" ]; then
|
||||
echo "Hello Admin! You have full access."
|
||||
exit 0
|
||||
else
|
||||
echo "Hello $name!"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "Hello, all of you: $@"
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user