Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syntax error on running menu_powermenu #52

Closed
satyajitghana opened this issue May 1, 2021 · 2 comments
Closed

syntax error on running menu_powermenu #52

satyajitghana opened this issue May 1, 2021 · 2 comments

Comments

@satyajitghana
Copy link

❯ menu_powermenu
/home/shadowleaf/.config/rofi/bin/usedcpu: 8: [[: not found
/home/shadowleaf/.config/rofi/bin/usedcpu: 14: Syntax error: "(" unexpected
/home/shadowleaf/.config/rofi/bin/usedram: 4: Bad substitution
/home/shadowleaf/.config/rofi/bin/usedram: 17: [[: not found
/home/shadowleaf/.config/rofi/bin/usedram: 19: [[: not found
/home/shadowleaf/.config/rofi/bin/usedram: 23: [[: not found

I'm on zsh

@hartontw
Copy link

nano menu_powermenu

Replace sh to bash

cpu=$(bash ~/.config/rofi/bin/usedcpu)
memory=$(bash ~/.config/rofi/bin/usedram)

@ghost
Copy link

ghost commented Jul 10, 2021

It's not even neccessary to call bash at all, the permissions allow for direct execution.
Pull request #59 should fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants