refactoring installing ba*bash*ka

This commit is contained in:
Mirco 2024-03-26 16:38:12 +01:00
parent 581449fba4
commit d133b281f9

View file

@ -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() {