Skip to content
This repository was archived by the owner on Apr 13, 2024. It is now read-only.

Commit c4e7113

Browse files
committed
buildroot/rebuild.sh: Allow the script to run from anywhere
Instead of having to cd into the buildroot folder. [skip ci] Signed-off-by: Nathan Chancellor <[email protected]>
1 parent f2d8754 commit c4e7113

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

buildroot/rebuild.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
# Make sure we don't have any unset variables
55
set -u
66

7+
# Move into the folder that contains this script
8+
cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")" || exit 1
9+
710
# Generate list of configs to build
811
CONFIGS=()
912
while (( ${#} )); do

0 commit comments

Comments
 (0)