2023-04-10 22:34:38 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -euxo pipefail
|
|
|
|
|
|
|
|
INSTALL_DIR="/usr/local/bin"
|
|
|
|
SUDO=sudo
|
|
|
|
|
|
|
|
preflight () {
|
|
|
|
if [ "$(whoami)" = "root" ]
|
|
|
|
then
|
|
|
|
SUDO=""
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
apt_packages () {
|
|
|
|
$SUDO apt-get update
|
2023-04-12 08:01:57 +00:00
|
|
|
$SUDO apt-get -y install git bash curl sudo build-essential unzip \
|
|
|
|
qemu-user-static e2fsprogs dosfstools \
|
|
|
|
libarchive-tools xz-utils
|
2023-04-10 22:34:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
preflight
|
|
|
|
apt_packages
|