bb64 release v12
This commit is contained in:
parent
6b11a45e0f
commit
90c22fea00
@ -1,12 +1,6 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Require root
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "This script must be run as root." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Installs bb64 on the local machine.
|
||||
# 1. determines the architecture of the local machine
|
||||
# 2. downloads the appropriate bb64 binary from the latest public release on Gitea (https://gitea.jde.nz/j/bb64/releases)
|
||||
@ -54,7 +48,8 @@ chmod +x "$TMPDIR/bb64"
|
||||
|
||||
# 5. Move to /usr/local/bin
|
||||
# -----------------------------------------------------------------------------
|
||||
mv "$TMPDIR/bb64" /usr/local/bin/bb64
|
||||
docker run --rm -v "$TMPDIR:/tmp" -v /usr/local/bin:/target alpine sh -c "cp /tmp/bb64 /target/bb64"
|
||||
rm "$TMPDIR/bb64"
|
||||
|
||||
# 6. Print success message
|
||||
# -----------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user