mirror of
https://github.com/gomods/athens
synced 2026-02-03 11:00:32 +00:00
* always downloading a fixed buffalo CLI version As of this writing, latest is v0.12.3 * moving the buffalo binary to a permitted place also making the binary executable * composing buffalo URL with tar_gz env var
11 lines
308 B
Bash
Executable File
11 lines
308 B
Bash
Executable File
#!/bin/bash
|
|
|
|
TAR_GZ="buffalo_0.12.3_linux_amd64.tar.gz"
|
|
BUFFALO_URL="https://github.com/gobuffalo/buffalo/releases/download/v0.12.3/${TAR_GZ}"
|
|
BUFFALO_TARGET_BIN="./bin/buffalo"
|
|
|
|
curl -L -o ${TAR_GZ} ${BUFFALO_URL}
|
|
tar -xvf ${TAR_GZ}
|
|
mv buffalo-no-sqlite ${BUFFALO_TARGET_BIN}
|
|
chmod +x ${BUFFALO_TARGET_BIN}
|