Fix build scripts when used on Ubuntu 21.04

This commit is contained in:
loki-47-6F-64
2021-10-04 20:53:40 +02:00
parent cb0b32f90a
commit fe7a7f4d77
2 changed files with 16 additions and 16 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
#/bin/bash -e
function usage {
usage() {
echo "Usage: $0"
echo " -d: Generate a debug build"
echo " -p: Generate a debian package"
@@ -11,7 +11,7 @@ function usage {
}
# Attempt to turn relative paths into absolute paths
function absolute_path() {
absolute_path() {
RELATIVE_PATH=$1
if which realpath >/dev/null 2>/dev/null
then
@@ -81,7 +81,7 @@ while getopts ":dpuhc:s:n:" arg; do
esac
done
[ "$USERNAME" == "" ] && USERNAME=$(logname)
[ "$USERNAME" = "" ] && USERNAME=$(logname)
BUILD_DIR="$PWD/$CONTAINER_NAME-build"
SUNSHINE_ASSETS_DIR="-e SUNSHINE_ASSETS_DIR=$BUILD_DIR/assets"