Skip to content

Commit

Permalink
fix for new shell check
Browse files Browse the repository at this point in the history
  • Loading branch information
tschettervictor authored Dec 16, 2024
1 parent fb21ff1 commit f91f246
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usr/local/share/bastille/list.sh
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ list_release(){
REL_LIST="$(ls "${bastille_releasesdir}" | sed "s/\n//g")"
for _REL in ${REL_LIST}; do
if [ -f "${bastille_releasesdir}/${_REL}/root/.profile" ] || [ -d "${bastille_releasesdir}/${_REL}/debootstrap" ]; then
if [ "${2}" = "-p" ] && [ -f "${bastille_releasesdir}/${_REL}/bin/freebsd-version" ]; then
if [ "${1}" = "-p" ] && [ -f "${bastille_releasesdir}/${_REL}/bin/freebsd-version" ]; then
REL_PATCH_LEVEL=$(sed -n "s/^USERLAND_VERSION=\"\(.*\)\"$/\1/p" "${bastille_releasesdir}/${_REL}/bin/freebsd-version" 2> /dev/null)
REL_PATCH_LEVEL=${REL_PATCH_LEVEL:-${_REL}}
echo "${REL_PATCH_LEVEL}"
Expand Down Expand Up @@ -214,7 +214,7 @@ if [ $# -gt 0 ]; then
list_all
;;
release|releases)
list_release
list_release "${2}"
;;
template|templates)
list_template
Expand Down

0 comments on commit f91f246

Please sign in to comment.