Skip to content

Commit

Permalink
Fix two shellcheck warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nicowilliams committed Nov 1, 2022
1 parent ea58a8a commit 8c42c80
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sbin/attest-enroll
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,14 @@ configure() {

usage() {
((${1:-1} == 0)) || exec 1>&2
# shellcheck disable=SC2209
pager=cat
if [[ -t 0 && -t 1 && -t 2 ]]; then
if [[ -z ${PAGER:-} ]] && type less >/dev/null 2>&1; then
# shellcheck disable=SC2209
pager=less
elif [[ -z ${PAGER:-} ]] && type more >/dev/null 2>&1; then
# shellcheck disable=SC2209
pager=more
elif [[ -n ${PAGER:-} ]]; then
pager=$PAGER
Expand Down

0 comments on commit 8c42c80

Please sign in to comment.