Initial commit.
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
2024-05-04 13:18:37 +05:00
commit 8b945c8f90
16 changed files with 273 additions and 0 deletions

17
scripts/helpers/arch.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
# shellcheck disable=SC2034
# Line above disables shellcheck linters:
# * SC2043 - unused variable (this file sourced elsewhere).
base_arch=$(uname -m)
arch=""
if [ "$base_arch" = "x86_64" ]; then
arch=amd64
elif [ "$base_arch" = "aarch64" ]; then
arch=arm64
else
echo "unknown arch"
exit 1
fi