| 1 | #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash |
| 2 | |
| 3 | install_binaryscip-shell shell shell-project 0.0.0 install_binary().() { |
| 4 | local file="$1" |
| 5 | local target="${DOCKER_MAKE_INSTALL_PREFIX:=/usr/local}/bin/" |
| 6 | if [scip-shell system . . `[`. "$(goscip-shell system . . go. env GOOS)" == "linux" ]; then |
| 7 | echoscip-shell system . . echo. "Installing $(basenamescip-shell system . . basename. $file) to ${target}" |
| 8 | mkdirscip-shell system . . mkdir. -p "$target" |
| 9 | cpscip-shell system . . cp. -f -L "$file" "$target" |
| 10 | else |
| 11 | echoscip-shell system . . echo. "Install is only supported on linux" |
| 12 | return 1 |
| 13 | fi |
| 14 | } |