mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-26 23:40:38 +01:00
etcupdate: Better handling of src verify
This commit is contained in:
@@ -48,7 +48,7 @@ bootstrap_etc_release() {
|
||||
local _release="${1}"
|
||||
local _current="$(sysrc -f /usr/local/etc/bastille/bastille.conf bastille_bootstrap_archives | awk -F': ' '{print $2}')"
|
||||
|
||||
if [ -z "$(ls -A "${bastille_releasesdir}/${_release}/usr/src")" ]; then
|
||||
if [ ! -f "${bastille_cachedir}/${_release}/src.txz" ]; 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}"
|
||||
|
||||
Reference in New Issue
Block a user