build: Fix error getting base dir after #119

This commit is contained in:
Rémi Verschelde
2023-05-24 16:50:53 +02:00
parent 5f596e34f2
commit 46a2320545

View File

@@ -1,6 +1,8 @@
#!/bin/bash
source $(dirname "$0")/setup.sh
basedir=$(cd $(dirname "$0"); pwd)
source $basedir/setup.sh
if [ -z "$1" -o -z "$2" ]; then
echo "Usage: $0 <godot branch> <base distro>"
@@ -20,7 +22,7 @@ fi
godot_branch=$1
base_distro=$2
img_version=$godot_branch-$base_distro
files_root="$(cd dirname "$0"; pwd)/files"
files_root="$basedir/files"
build_msvc=0
if [ ! -z "$PS1" ]; then