gnome-power-cmd.sh doesn't work at all
Bug #130598 reported by
CookedGryphon
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-power-manager (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: gnome-power-manager
<~>: gnome-power-cmd.sh shutdown
[: 44: ==: unexpected operator
[: 44: ==: unexpected operator
[: 44: ==: unexpected operator
[: 44: ==: unexpected operator
[: 44: ==: unexpected operator
command 'shutdown' not recognised, only suspend, shutdown, hibernate or reboot are valid
is produced (whatever is typed)
Related branches
To post a comment you must log in.
found a forum post mentioning that this is because it's running in sh rather than bash, and upon adding
#!/bin/bash
at the top, it works! I wouldn't know how to go about submitting a fix though so I'll leave it as a bug report.