Skip to content

Commit

Permalink
suppress shellcheck issue (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
richm authored Jan 25, 2023
1 parent 8ff13fe commit e35044b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/timesync_provider.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ is_service_enabled() {
local name runlevel prev_runlevel
name="$1"

# shellcheck disable=SC2034
read -r prev_runlevel runlevel < <(runlevel)
prev_runlevel="${prev_runlevel}" # shell check complains unused var

systemctl is-enabled "$name.service" &> /dev/null || \
chkconfig --list "$name" 2>/dev/null | grep -q "$runlevel:on"
Expand Down

0 comments on commit e35044b

Please sign in to comment.