Script works but probably should be made to be POSIX compliant
Closed this issue · 2 comments
oregonpillow commented
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... doneit works but line 14 gives unexpected operator error. Switching to /usr/bin/bash fixed issue.
Awesome script!
hftosx commented
@oregonpillow where did you place the script on mac please
oregonpillow commented
@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.