fan-profile: drop redundant 2>/dev/null on mapping function call
map_profile_to_strategy never writes to stderr — the suppression was silencing nothing real and would mislead a future reader. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -38,7 +38,7 @@ fi
|
|||||||
|
|
||||||
if [ -f "$STATE_FILE" ]; then
|
if [ -f "$STATE_FILE" ]; then
|
||||||
PROFILE=$(powerprofilesctl get 2>/dev/null)
|
PROFILE=$(powerprofilesctl get 2>/dev/null)
|
||||||
MAPPED=$(map_profile_to_strategy "$PROFILE" 2>/dev/null)
|
MAPPED=$(map_profile_to_strategy "$PROFILE")
|
||||||
if [ -n "$MAPPED" ]; then
|
if [ -n "$MAPPED" ]; then
|
||||||
ACTIVE=$(fw-fanctrl print 2>/dev/null | awk -F"'" '/^Strategy:/{print $2}')
|
ACTIVE=$(fw-fanctrl print 2>/dev/null | awk -F"'" '/^Strategy:/{print $2}')
|
||||||
[ "$ACTIVE" != "$MAPPED" ] && fw-fanctrl use "$MAPPED" >/dev/null 2>&1
|
[ "$ACTIVE" != "$MAPPED" ] && fw-fanctrl use "$MAPPED" >/dev/null 2>&1
|
||||||
|
|||||||
Reference in New Issue
Block a user