Compare commits

...

2 Commits

Author SHA1 Message Date
a7a85ee67a Use --detached worktrees 2025-08-05 14:14:16 -04:00
4890aa192d Cleanup some comments 2025-07-29 17:40:02 -04:00
2 changed files with 3 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ Build and deploy OpenWRT images using shell-style device profiles, via source co
--release,-r,--version,-v RELEASE ("snapshot", "22.03.3")
--buildroot,-b PATH (Default: script directory)
--source
Build image from source, not from Image Builder
Build image from source code, not from Image Builder
Allows make config options to be passed in profile
Uses git worktree for multi-profile deduplication
--ssh-upgrade HOST
@@ -27,7 +27,6 @@ Build and deploy OpenWRT images using shell-style device profiles, via source co
Can be combined with -p to reset a specific profile
--depends
Force dependency installation
Ignores .dependencies files
--yes,-y
Assume yes for all questions (automatic mode)
--debug,-d

View File

@@ -1,6 +1,5 @@
#!/usr/bin/env bash
# Build and deploy OpenWRT images using convenient shell-style device profiles.
# Copyright 2022-25 Bryan C. Roessler
# Build and deploy OpenWRT images using shell-style device profiles, via source code or the official Image Builder.# Copyright 2022-25 Bryan C. Roessler
# Apache 2.0 License
# See README and profiles for device configuration
@@ -535,7 +534,7 @@ from_source() {
execute rm -rf "$BUILD_DIR"
fi
execute git -C "$SRC_DIR" worktree prune --verbose
execute git -C "$SRC_DIR" worktree add "$BUILD_DIR" "$ref"
execute git -C "$SRC_DIR" worktree add --detach "$BUILD_DIR" "$ref"
# Print commit info
commit=$(git -C "$BUILD_DIR" rev-parse HEAD)