Last active
October 25, 2024 07:47
-
-
Save paulwib/a108cda9f56a685cd376861e82a3a5a9 to your computer and use it in GitHub Desktop.
curl | sh with args
This file contains hidden or 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 | |
# For example, to pass "foo" as argument 1: | |
# curl -sSL https://example.com/example.sh | sh -s -- foo | |
# For more details see: https://www.baeldung.com/linux/curl-fetched-script-arguments | |
echo "ARGUMENT 1: ${1}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment