bin/rdbg

Fri, 06 May 2022 06:33:41 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Fri, 06 May 2022 06:33:41 -0400
changeset 990
a4f19f325dea
parent 946
20c0492da189
child 992
4e3e37ce84bc
permissions
-rwxr-xr-x

Switch to stubexec, handle user_dir install

990
a4f19f325dea Switch to stubexec, handle user_dir install
Meredith Howard <mhoward@roomag.org>
parents: 946
diff changeset
1 #!/bin/sh
a4f19f325dea Switch to stubexec, handle user_dir install
Meredith Howard <mhoward@roomag.org>
parents: 946
diff changeset
2 set -eu
a4f19f325dea Switch to stubexec, handle user_dir install
Meredith Howard <mhoward@roomag.org>
parents: 946
diff changeset
3 . ~/.lib/sh/stubexec.sh
946
20c0492da189 Add sick "run anywhere ignoring bundler" hacks
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
4
990
a4f19f325dea Switch to stubexec, handle user_dir install
Meredith Howard <mhoward@roomag.org>
parents: 946
diff changeset
5 install_it() {
a4f19f325dea Switch to stubexec, handle user_dir install
Meredith Howard <mhoward@roomag.org>
parents: 946
diff changeset
6 [ -w "$(gem env gemdir)" ] ||
a4f19f325dea Switch to stubexec, handle user_dir install
Meredith Howard <mhoward@roomag.org>
parents: 946
diff changeset
7 opt="--user-install"
946
20c0492da189 Add sick "run anywhere ignoring bundler" hacks
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
8
990
a4f19f325dea Switch to stubexec, handle user_dir install
Meredith Howard <mhoward@roomag.org>
parents: 946
diff changeset
9 gem install -q ${opt:-} "debug:>=1.0.0"
a4f19f325dea Switch to stubexec, handle user_dir install
Meredith Howard <mhoward@roomag.org>
parents: 946
diff changeset
10 asdf reshim ruby || :
a4f19f325dea Switch to stubexec, handle user_dir install
Meredith Howard <mhoward@roomag.org>
parents: 946
diff changeset
11 }
a4f19f325dea Switch to stubexec, handle user_dir install
Meredith Howard <mhoward@roomag.org>
parents: 946
diff changeset
12
a4f19f325dea Switch to stubexec, handle user_dir install
Meredith Howard <mhoward@roomag.org>
parents: 946
diff changeset
13 stubexec "$@"

mercurial