Skip to content

App Cannot Read Shell Scripts Properly #2209

Description

@znbaboy

Have you checked if an issue already exists for this bug?

  • Nobody else has reported this bug before

Have you tried restarting your device?

  • I have tried restarting my device and that did not help

What happened that you did not expect?

Shell scripts throwing error despite being typed correctly

What did you expect to happen?

script to work without issue

What would the developer need to do to reproduce the bug?

Copy and paste a shell script into the in app editor and test. You will get some sort of syntax error if there are line breaks

Image Image
if dumpsys power | grep -q 'mWakefulness=Asleep'; then
    input keyevent POWER
    cmd hdmi_control cec_setting set volume_control_enabled 0
    sleep 1
    input keyevent POWER
    sleep 1
    input keyevent POWER
    cmd hdmi_control cec_setting set volume_control_enabled 1
else
    input keyevent POWER
fi

App version

Version 4.3.0-foss

Android version

Android 15

Device model and manufacturer

Nvidia Shield TV 2017 (darcy)

Extra info

  • My device is rooted

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions