Installer on FreeBSD
Created by: ghost
First of all, it's a gorgeus theme!
However, I've had trouble with the installer on FreeBSD. The first problem were the shebang /bin/bash
. Bash is not part of the base system, so it's installed on /usr/local/bin/bash
. I'm going to send a PR that replace /bin/bash
with /usr/bin/env bash
that should be more portable.
The other issue I have is the -u
flag of cp. From what I've read here that flag should copy the only if the source is newer then the destination. Unfortunately that flag does not seem to be POSIX (or at least, it does not compare in other man pages such as openbsd cp manpage).
That behavior should be replaced with:
if [ $FILE1 -nt $FILE2 ]; then
# $FILE1 is newer than $FILE2;
else
# $FILE1 is older than $FILE2
fi
(manpage) or -u
could simply be dropped.
I could send a PR with an additional function that mimics the -u
option, or simply remove it. Let me know what do you prefer :)