Last active
July 2, 2024 21:14
-
-
Save jeffa/d8edee0e11b274954a27a80fdd1339a2 to your computer and use it in GitHub Desktop.
Call me via wget -O - | bash with your name as an argument
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ -n "$1" ]; then | |
variable="$1" | |
elif [ -n "$HELLO_WORLD_VALUE" ]; then | |
variable="$HELLO_WORLD_VALUE" | |
else | |
variable="World" | |
fi | |
echo "Hello $variable" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wget -O - https://tinyurl.com/3kvbdr4y | HELLO_WORLD_VALUE="Ur Name" sh