aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 8dc9c51..f17ee62 100755
--- a/build.sh
+++ b/build.sh
@@ -421,7 +421,8 @@ if grep -q "file_permissions=" "$PROFILE_DIR/profiledef.sh"; then
fi
# Copy archsetup into airootfs (exclude large/unnecessary directories)
-if [[ -d /home/cjennings/code/archsetup ]]; then
+ARCHSETUP_DIR="${ARCHSETUP_DIR:-$HOME/code/archsetup}"
+if [[ -d "$ARCHSETUP_DIR" ]]; then
info "Copying archsetup into ISO..."
mkdir -p "$PROFILE_DIR/airootfs/code"
rsync -a --exclude='.git' \
@@ -430,7 +431,7 @@ if [[ -d /home/cjennings/code/archsetup ]]; then
--exclude='test-results' \
--exclude='*.qcow2' \
--exclude='*.iso' \
- /home/cjennings/code/archsetup "$PROFILE_DIR/airootfs/code/"
+ "$ARCHSETUP_DIR" "$PROFILE_DIR/airootfs/code/"
fi
# Pre-populate tealdeer (tldr) cache for offline use