talleres-bash/taller1/scripts/07.sh

13 lines
193 B
Bash
Raw Permalink Normal View History

2024-04-17 21:50:31 +02:00
#!/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"