mirror of
https://github.com/hackacad/bastille.git
synced 2026-03-25 02:05:11 +01:00
update: better pkgbase check
This commit is contained in:
@@ -139,7 +139,7 @@ jail_check() {
|
||||
else
|
||||
FREEBSD_BRANCH="release"
|
||||
fi
|
||||
if [ "${MAJOR_VERSION}" -ge 16 ] || pkg -r "${bastille_jailsdir}/${TARGET}/root" which /usr/bin/uname > /dev/null 2>&1; then
|
||||
if pkg -r "${bastille_jailsdir}/${TARGET}/root" which /usr/bin/uname > /dev/null 2>&1; then
|
||||
PKGBASE=1
|
||||
fi
|
||||
fi
|
||||
@@ -276,7 +276,7 @@ release_check() {
|
||||
else
|
||||
FREEBSD_BRANCH="release"
|
||||
fi
|
||||
if [ "${MAJOR_VERSION}" -ge 16 ] || pkg -r "${bastille_releasesdir}/${TARGET}" which /usr/bin/uname > /dev/null 2>&1; then
|
||||
if pkg -r "${bastille_releasesdir}/${TARGET}" which /usr/bin/uname > /dev/null 2>&1; then
|
||||
PKGBASE=1
|
||||
fi
|
||||
fi
|
||||
@@ -489,4 +489,4 @@ case ${UPDATE_TARGET} in
|
||||
*)
|
||||
error_exit "[ERROR]: Unknown update target."
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user