News for hackers. Stuff that matters.
Re:Keep a Log by rnkn on Saturday December 04, 2021 @06:43AM (#29440257)
Hate to nitpick but #!/bin/bash is not actually zero-dependency, as bash is not installed on BSD by default, and if installed won't be located at /bin/bash.

You could probably just change to #!/bin/sh without issue.

Re:Keep a Log by nickjj on Saturday December 04, 2021 @07:28AM (#29440431)
Thanks for bringing this up. It does mostly work the same with shell but the -p flag of read isn't available with POSIX compliant shell. I ended up changing that slightly and pushed a patch to use sh now. Every other feature of the script worked the same with sh without modification.

As for using #!/bin/bash instead of #!/usr/bin/env bash, that was an oversight from 2 years ago. I addressed that too in the above patch by using #!/usr/bin/env sh.