Skip to content

Commit

Permalink
Merge pull request #857 from BastilleBSD/tschettervictor-patch-1
Browse files Browse the repository at this point in the history
etcupdate: Fix not bootstrapping when /usr/src is present but empty
  • Loading branch information
tschettervictor authored Feb 18, 2025
2 parents 9531a30 + 86714b2 commit 779e7b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/local/share/bastille/etcupdate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ EOF
bootstrap_etc_release() {
local _release="${1}"
local _current="$(sysrc -f /usr/local/etc/bastille/bastille.conf bastille_bootstrap_archives | awk -F': ' '{print $2}')"
if ! ls -A "${bastille_releasesdir}/${_release}/usr/src" 2>/dev/null; then
if [ -z "$(ls -A "${bastille_releasesdir}/${_release}/usr/src")" ]; then
sysrc -f /usr/local/etc/bastille/bastille.conf bastille_bootstrap_archives=src
if ! bastille bootstrap "${_release}" > /dev/null; then
sysrc -f /usr/local/etc/bastille/bastille.conf bastille_bootstrap_archives="${_current}"
Expand Down

0 comments on commit 779e7b7

Please sign in to comment.