Diapositivas y scripts de taller 1
This commit is contained in:
12
taller1/scripts/07.sh
Executable file
12
taller1/scripts/07.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
if [[ -z $1 ]]; then
|
||||
echo "No hay parámetro"
|
||||
exit 1
|
||||
elif [[ $1 == Pepe ]]; then
|
||||
echo "Me caes mal"
|
||||
exit 1
|
||||
else
|
||||
echo "Parámetro válido"
|
||||
fi
|
||||
greeting=$1
|
||||
echo "Hello $greeting"
|
||||
Reference in New Issue
Block a user