Skip to content

Commit 2fa3a48

Browse files
committed
forgot to mktemp
1 parent e898b5a commit 2fa3a48

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spruce/scripts/platform/device_functions/SmartProS.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,5 +495,6 @@ set_backlight() {
495495
echo "$val_255" > /sys/class/backlight/backlight0/brightness
496496

497497
# update device system json
498+
tmp=$(mktemp)
498499
jq ".backlight = $val" "$SYSTEM_JSON" > "$tmp" && mv "$tmp" "$SYSTEM_JSON"
499500
}

0 commit comments

Comments
 (0)