Skip to content

Commit

Permalink
update: only print what matters
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Oct 8, 2017
1 parent 633a82d commit c2810c4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions update/opnsense-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -301,13 +301,15 @@ fi

if [ -z "${DO_FORCE}" ]; then
# disable kernel if locked
if [ -n "${LOCKED_KERNEL}" -a -z "${DO_UPGRADE}" ]; then
if [ -n "${DO_KERNEL}" -a -n "${LOCKED_KERNEL}" -a \
-z "${DO_UPGRADE}" ]; then
echo "Kernel locked, skipping."
DO_KERNEL=
fi

# disable base if locked
if [ -n "${LOCKED_BASE}" -a -z "${DO_UPGRADE}" ]; then
if [ -n "${DO_BASE}" -a -n "${LOCKED_BASE}" -a \
-z "${DO_UPGRADE}" ]; then
echo "Base locked, skipping."
DO_BASE=
fi
Expand Down

0 comments on commit c2810c4

Please sign in to comment.