refactoring installing ba*bash*ka
This commit is contained in:
parent
581449fba4
commit
d133b281f9
1 changed files with 2 additions and 3 deletions
|
@ -8,9 +8,8 @@ function babashka_install() {
|
||||||
curl -SsLo /tmp/checksum https://github.com/babashka/babashka/releases/download/v${babashka_version}/babashka-${babashka_version}-linux-amd64.tar.gz.sha256
|
curl -SsLo /tmp/checksum https://github.com/babashka/babashka/releases/download/v${babashka_version}/babashka-${babashka_version}-linux-amd64.tar.gz.sha256
|
||||||
echo " /tmp/babashka-$babashka_version-linux-amd64.tar.gz"|tee -a /tmp/checksum
|
echo " /tmp/babashka-$babashka_version-linux-amd64.tar.gz"|tee -a /tmp/checksum
|
||||||
sha256sum -c --status /tmp/checksum
|
sha256sum -c --status /tmp/checksum
|
||||||
tar -C /usr/local/bin -xf /tmp/babashka-${babashka_version}-linux-amd64.tar.gz
|
tar -C /tmp -xzf /tmp/babashka-${babashka_version}-linux-amd64.tar.gz
|
||||||
chown root /usr/local/bin/bb
|
install -m 0700 -o root -g root /tmp/bb /usr/local/bin/
|
||||||
chgrp root /usr/local/bin/bb
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
|
|
Loading…
Reference in a new issue