Skip to content

Instantly share code, notes, and snippets.

@paulwib
Last active October 25, 2024 07:47
Show Gist options
  • Save paulwib/a108cda9f56a685cd376861e82a3a5a9 to your computer and use it in GitHub Desktop.
Save paulwib/a108cda9f56a685cd376861e82a3a5a9 to your computer and use it in GitHub Desktop.
curl | sh with args
#!/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