# HG changeset patch # User Meredith Howard # Date 1651892631 18000 # Node ID 4e3e37ce84bc7480cdf8e5add29af6669594e0b2 # Parent a925474b955862b0ff9ae308d6c694b83424ef6d Switch stubexec to self-invoke diff --git a/.lib/sh/stubexec.sh b/.lib/sh/stubexec.sh --- a/.lib/sh/stubexec.sh +++ b/.lib/sh/stubexec.sh @@ -35,3 +35,5 @@ stubexec() { install_it stubexec $* } + +stubexec "$@" diff --git a/bin/cpm b/bin/cpm --- a/bin/cpm +++ b/bin/cpm @@ -1,6 +1,5 @@ #!/bin/sh set -eu -. ~/.lib/sh/stubexec.sh install_it() { curl -fsSL --compressed https://git.io/cpm | @@ -9,4 +8,4 @@ install_it() { asdf reshim perl || : } -stubexec "$@" +. ~/.lib/sh/stubexec.sh diff --git a/bin/gotags b/bin/gotags --- a/bin/gotags +++ b/bin/gotags @@ -1,10 +1,9 @@ #!/bin/sh set -eu -. ~/.lib/sh/stubexec.sh install_it() { go install github.com/jstemmer/gotags@latest asdf reshim || : } -stubexec "$@" +. ~/.lib/sh/stubexec.sh diff --git a/bin/pg_format b/bin/pg_format --- a/bin/pg_format +++ b/bin/pg_format @@ -1,10 +1,9 @@ #!/bin/sh set -eu -. ~/.lib/sh/stubexec.sh install_it() { cpanm -n 'https://github.com/darold/pgFormatter.git' asdf reshim perl || : } -stubexec "$@" +. ~/.lib/sh/stubexec.sh diff --git a/bin/pry b/bin/pry --- a/bin/pry +++ b/bin/pry @@ -1,6 +1,5 @@ #!/bin/sh set -eu -. ~/.lib/sh/stubexec.sh install_it() { [ -w "$(gem env gemdir)" ] || @@ -11,4 +10,4 @@ install_it() { asdf reshim ruby || : } -stubexec "$@" +. ~/.lib/sh/stubexec.sh diff --git a/bin/rdbg b/bin/rdbg --- a/bin/rdbg +++ b/bin/rdbg @@ -1,6 +1,5 @@ #!/bin/sh set -eu -. ~/.lib/sh/stubexec.sh install_it() { [ -w "$(gem env gemdir)" ] || @@ -10,4 +9,4 @@ install_it() { asdf reshim ruby || : } -stubexec "$@" +. ~/.lib/sh/stubexec.sh diff --git a/bin/stow b/bin/stow --- a/bin/stow +++ b/bin/stow @@ -1,10 +1,9 @@ #!/bin/sh set -eu -. ~/.lib/sh/stubexec.sh install_it() { cpanm -n Stow asdf reshim perl || : } -stubexec "$@" +. ~/.lib/sh/stubexec.sh