From 4c54a238d81d07aedcd129cb5a0b534643a76e1f Mon Sep 17 00:00:00 2001 From: vlad Date: Tue, 21 Dec 2021 11:15:24 -0800 Subject: [PATCH] /tmp is more likely to exist. And is shorter. --- examples | 3 ++- readme.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples b/examples index 2d360ed..2422abb 100755 --- a/examples +++ b/examples @@ -7,6 +7,7 @@ ⚡️build() { _help-line "Build an incredible script" "$@" + mkdir -p .generated echo 'echo hi; echo "$@"' > .generated/potato chmod +x .generated/potato } @@ -67,4 +68,4 @@ kubectlw() { 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/⚡) diff --git a/readme.md b/readme.md index a1eab3c..9a5c1e1 100644 --- a/readme.md +++ b/readme.md @@ -8,7 +8,7 @@ The main reason ⚡-runner was born, was because I'm a huge fan of [go scripts]( # 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! ``` -source <(cat .generated/⚡ || curl https://apps.ofvlad.xyz/⚡ | tee .generated/⚡) +source <(cat /tmp/⚡ 2> /dev/null || curl https://apps.ofvlad.xyz/⚡ | tee /tmp/⚡) ``` # Examples