Skip to content

Fix for line 39: warning: command substitution: ignored null byte in input in turn_off_gpu.sh on Manjaro 18.1.5 #87

@sidenkov

Description

@sidenkov

On Manjaro 18.1.5 turn_off_gpu.sh script returns line 39: warning: command substitution: ignored null byte in input warning instead of saying "failed" or "works"

I fixed it by replacing line 39

result=$(cat /proc/acpi/call)

with

result=$(tr -d '\0' </proc/acpi/call)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions