Debian Codegraph @

dev-bin/install-xt-tools.sh

raw
1 #!/bin/sh
2
3 set -e
4
5 TARGET="$HOME/bin"
6 if [ $(id -u) -eq 0 ]; then
7 TARGET="/usr/local/bin"
8 fi
9 echo "Installing dev tools to $TARGET"
10
11 mkdir -p $TARGET
12 curl --silent --location \
13 https://raw.githubusercontent.com/houseabsolute/ubi/master/bootstrap/bootstrap-ubi.sh |
14 sh
15
16 "$TARGET/ubi" --project houseabsolute/precious --in "$TARGET"
17 "$TARGET/ubi" --project houseabsolute/omegasort --in "$TARGET"
18
19 echo "Add $TARGET to your PATH in order to use precious for linting and tidying"