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/bash | |
| # | |
| # curl -sSL https://gist.githubusercontent.com/roele/45e69635c1fa2e1c0f3b70259ff89796/raw/test.sh | bash -s -- "hello" "world" | |
| # curl -sSL https://gist.githubusercontent.com/roele/45e69635c1fa2e1c0f3b70259ff89796/raw/test.sh | env ARG1=hello ARG2=world bash -s | |
| # | |
| set -e | |
| PARAM1="${ARG1:-$1}" |