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