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

prayers.json not created #1

Closed
AbdelrahmanElhosiny opened this issue Nov 5, 2023 · 2 comments
Closed

prayers.json not created #1

AbdelrahmanElhosiny opened this issue Nov 5, 2023 · 2 comments

Comments

@AbdelrahmanElhosiny
Copy link

AbdelrahmanElhosiny commented Nov 5, 2023

The module in polybar is displaying

jq: error: Could not open file /home/abdelrahman/.local/share/prayer.json: No such file or directory

so I tried running prayer-times.sh and it gave me this error

./prayer-times.sh: 17: [[: not found
./prayer-times.sh: 23: [[: not found
./prayer-times.sh: 23: !=: not found
Creating at jobs for prayer notification...
/home/abdelrahman/.local/bin/add-prayers-at-jobs.sh: 7: [[: not found
jq: error: Could not open file /home/abdelrahman/.local/share/prayers.json: No such file or directory
jq: error: Could not open file /home/abdelrahman/.local/share/prayers.json: No such file or directory
jq: error: Could not open file /home/abdelrahman/.local/share/prayers.json: No such file or directory
jq: error: Could not open file /home/abdelrahman/.local/share/prayers.json: No such file or directory
jq: error: Could not open file /home/abdelrahman/.local/share/prayers.json: No such file or directory
at: refusing to create job destined in the past
at: refusing to create job destined in the past
at: refusing to create job destined in the past
at: refusing to create job destined in the past
at: refusing to create job destined in the past

@0xzer0x
Copy link
Owner

0xzer0x commented Nov 5, 2023

./prayer-times.sh: 17: [[: not found

This seems to be due to running the script using a shell other than sh/bash, does running sh prayer-times.sh or bash prayer-times.sh give the same error ?

@AbdelrahmanElhosiny
Copy link
Author

AbdelrahmanElhosiny commented Nov 6, 2023

Thank you very much for answering, now when i run prayer.sh with bash it runs fine but in polybar it is giving me an error that it gives when it runs with sh.

edit: I edited the header in prayer.sh to be #!/bin/bash and that made it work, gazak allah kol kher

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

2 participants