convert bootstrap.sh to POSIX (untested)

It is not safe to rely on bash existing, let alone /bin/bash being the location of the binary.

It is considered unsafe to script ls.  This is why find exists.

Quote all files.

Convert bootstrap.sh to POSIX sh
I think you want `.git/hooks/$(basename "$f")` as you're doing on the previous line.