/tmp is more likely to exist. And is shorter.
This commit is contained in:
parent
b6d568e1bb
commit
4c54a238d8
3
examples
3
examples
@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
⚡️build() {
|
⚡️build() {
|
||||||
_help-line "Build an incredible script" "$@"
|
_help-line "Build an incredible script" "$@"
|
||||||
|
mkdir -p .generated
|
||||||
echo 'echo hi; echo "$@"' > .generated/potato
|
echo 'echo hi; echo "$@"' > .generated/potato
|
||||||
chmod +x .generated/potato
|
chmod +x .generated/potato
|
||||||
}
|
}
|
||||||
@ -67,4 +68,4 @@ kubectlw() {
|
|||||||
kubectlw version
|
kubectlw version
|
||||||
}
|
}
|
||||||
|
|
||||||
source <(cat .generated/⚡ || curl https://apps.ofvlad.xyz/⚡ | tee .generated/⚡)
|
source <(cat /tmp/⚡ 2> /dev/null || curl https://apps.ofvlad.xyz/⚡ | tee /tmp/⚡)
|
||||||
|
@ -8,7 +8,7 @@ The main reason ⚡-runner was born, was because I'm a huge fan of [go scripts](
|
|||||||
# Usage
|
# Usage
|
||||||
Download the runner, chuck it into your repo, and source it from a shell script! Or if you're feeling brave, use the line below... I know I will!
|
Download the runner, chuck it into your repo, and source it from a shell script! Or if you're feeling brave, use the line below... I know I will!
|
||||||
```
|
```
|
||||||
source <(cat .generated/⚡ || curl https://apps.ofvlad.xyz/⚡ | tee .generated/⚡)
|
source <(cat /tmp/⚡ 2> /dev/null || curl https://apps.ofvlad.xyz/⚡ | tee /tmp/⚡)
|
||||||
```
|
```
|
||||||
|
|
||||||
# Examples
|
# Examples
|
||||||
|
Loading…
Reference in New Issue
Block a user