diff options
author | Eric Wong <e@80x24.org> | 2021-04-29 08:26:11 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-05-06 23:07:43 +0000 |
commit | 96c43ff8f26cf89934198d2387cddef1f119a271 (patch) | |
tree | d94f8064a08d62bb8ace91e3de08ac5078da7d73 /dtas.sh | |
parent | a282c47a217e6028008408dd74b249fddaad2153 (diff) | |
download | dtas-96c43ff8f26cf89934198d2387cddef1f119a271.tar.gz |
This is useful for users relying on system Ruby and lack permissions to install gems.
Diffstat (limited to 'dtas.sh')
-rwxr-xr-x | dtas.sh | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -0,0 +1,7 @@ +#!/bin/sh -e +# symlink this file to a directory in PATH to run dtas (or anything in bin/*) +# without needing perms to install globally. Used by "make symlink-install" +p=$(realpath "$0" || readlink "$0") # neither is POSIX, but common +p=$(dirname "$p") c=$(basename "$0") # both are POSIX +exec ${RUBY-ruby} -I"$p"/lib "$p"/bin/"${c%.sh}" "$@" +: this script is too short to copyright |