From b2680991934d30bd3342924eb4fa371c1a883495 Mon Sep 17 00:00:00 2001 From: pedro Date: Fri, 2 Feb 2024 14:36:30 +0100 Subject: [PATCH] allow all build scripts to be ran outside this dir this is useful for automation Reported-by: @Elahi --- build__all.sh | 2 ++ build__pilot-lafede.sh | 2 ++ build__pilot-pangea.sh | 2 ++ build__pilot-setem.sh | 2 ++ build__pilot-test.sh | 2 ++ build__pilot-xo9b.sh | 2 ++ 6 files changed, 12 insertions(+) diff --git a/build__all.sh b/build__all.sh index 03c779e..9146a0b 100755 --- a/build__all.sh +++ b/build__all.sh @@ -6,6 +6,8 @@ set -u set -x main() { + cd "$(dirname "${0}")" + ./pull-repos.sh export action="${action:-deploy}" diff --git a/build__pilot-lafede.sh b/build__pilot-lafede.sh index 6ecef72..0a71991 100755 --- a/build__pilot-lafede.sh +++ b/build__pilot-lafede.sh @@ -6,6 +6,8 @@ set -u set -x main() { + cd "$(dirname "${0}")" + # includes functions: # common_start # common_end diff --git a/build__pilot-pangea.sh b/build__pilot-pangea.sh index 00085d7..4ecb1d8 100755 --- a/build__pilot-pangea.sh +++ b/build__pilot-pangea.sh @@ -6,6 +6,8 @@ set -u set -x main() { + cd "$(dirname "${0}")" + # includes functions: # common_start # common_end diff --git a/build__pilot-setem.sh b/build__pilot-setem.sh index 56021f3..c7561a3 100755 --- a/build__pilot-setem.sh +++ b/build__pilot-setem.sh @@ -6,6 +6,8 @@ set -u set -x main() { + cd "$(dirname "${0}")" + # includes functions: # common_start # common_end diff --git a/build__pilot-test.sh b/build__pilot-test.sh index 9676ace..a9a0bf7 100755 --- a/build__pilot-test.sh +++ b/build__pilot-test.sh @@ -6,6 +6,8 @@ set -u set -x main() { + cd "$(dirname "${0}")" + # includes functions: # common_start # common_end diff --git a/build__pilot-xo9b.sh b/build__pilot-xo9b.sh index e44ba90..300e7e4 100755 --- a/build__pilot-xo9b.sh +++ b/build__pilot-xo9b.sh @@ -6,6 +6,8 @@ set -u set -x main() { + cd "$(dirname "${0}")" + # includes functions: # common_start # common_end