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

Script works but probably should be made to be POSIX compliant #1

Open
oregonpillow opened this issue Aug 25, 2024 · 2 comments
Open

Comments

@oregonpillow
Copy link
Contributor

oregonpillow commented Aug 25, 2024

script output on Debian 12, running exactly as described in readme:

/usr/local/bin/kindle-delete-ads.sh: 14: [: -ne: unexpected operator
Autodetecting Kindle device... done
Kindle device file is /dev/sde
Mounting Kindle to temporary location: /tmp/tmp.xpD91gQrSS
Ads detected. Cleaning time.
Deleting all ads... done
Installing temp ad blocker... done
Unmounting kindle... done

it works but line 14 gives unexpected operator error. Switching to /usr/bin/bash fixed issue.

Awesome script!

@hftosx
Copy link

hftosx commented Feb 22, 2025

@oregonpillow where did you place the script on mac please

@oregonpillow
Copy link
Contributor Author

@oregonpillow where did you place the script on mac please

Probably in my home directory but it doesn't matter where you execute script from, the paths are hard coded and are not relative to script location.

Also, this issue I raised was about Debian, not Mac.

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