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

prefsCleaner.sh cannot be run on fresh install of Pop!_OS 21.10 #1374

Closed
Panja0 opened this issue Feb 17, 2022 · 3 comments
Closed

prefsCleaner.sh cannot be run on fresh install of Pop!_OS 21.10 #1374

Panja0 opened this issue Feb 17, 2022 · 3 comments
Labels

Comments

@Panja0
Copy link

Panja0 commented Feb 17, 2022

  • prefsCleaner.sh
  • Go to the Firefox profile directory and run prefsCleaner.sh
  • Error message: permission denied,
  • Error message: When using sudo sh prefsCleaner.sh I get: 12: bad substitution, 15: bad substitution.

Fresh install of Pop!_OS 21.10, fully updated.
Any clue what's going on?

@rusty-snake
Copy link
Contributor

Error message: permission denied,

How did you run it?

Did you made it executable?

sudo sh prefsCleaner.sh

DO NOT PRETEND sudo BEFORE A COMMAND IF IT IS NOT WORKING, sudo ISN'T A MAGICAL BUGFIXER!

prefsCleaner.sh is a bash script. You need to start it in bash, not dash, zsh, ksh or whatever, bash is the only right interpreter.

@Panja0
Copy link
Author

Panja0 commented Feb 17, 2022

Error message: permission denied,

How did you run it?

Did you made it executable?

sudo sh prefsCleaner.sh

DO NOT PRETEND sudo BEFORE A COMMAND IF IT IS NOT WORKING, sudo ISN'T A MAGICAL BUGFIXER!

prefsCleaner.sh is a bash script. You need to start it in bash, not dash, zsh, ksh or whatever, bash is the only right interpreter.

Cheers for the fast reply!
After applying chmod +x prefsCleaner.sh I was able to run the script without problems.
Thanks for pointing me in the right direction!

Strange thing is that updater.sh was already executable without applying chmod +x
It was executable right away so I thought prefsCleaner.sh had to be executable as well, but it wasn't.

@Panja0 Panja0 closed this as completed Feb 17, 2022
@remyabel2
Copy link

Strange thing is that updater.sh was already executable without applying chmod +x

Git tracks the executable permission (but not any other permission). So whoever checked it into git already ran chmod +x on it but not for the other script.

Also you should be running it as ./prefCleaners.sh, you can see at the top that it says #!/usr/bin/env bash which implies that it is meant to be run with Bash.

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

No branches or pull requests

4 participants