Skip to content

Commit

Permalink
Merge pull request #34 from anoduck/main
Browse files Browse the repository at this point in the history
added support for OpenBSD
  • Loading branch information
alexmyczko committed Jan 23, 2024
2 parents 91654bd + cc49c5d commit fbf1662
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions fnt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ case "$s" in
md5="md5"
target="$HOME/.fonts/"
;;
OpenBSD)
#echo OpenBSD
check="curl chafa otfinfo"
i="pkg_add"
md5="md5"
target="$HOME/.local/share/fonts"
;;
Haiku)
#echo Haiku OS
check="curl"
Expand Down Expand Up @@ -210,8 +217,13 @@ case "$1" in
else
echo "Skipping non-existant Packages cache. Consider running: ${BASH_SOURCE[0]} update" >&2
fi
curl -s "$GINDEX/ofl/" |grep "a href" |sed 's,.*">,google-,;s,/.*,,' |grep -v "\.\.$" | awk "/$2/"
curl -s "$GINDEX/apache/" |grep "a href" |sed 's,.*">,google-,;s,/.*,,' |grep -v "\.\.$" | awk "/$2/"
if [[ "$(uname -s)" == "OpenBSD" ]]; then
curl -s "$GINDEX/ofl/" |ggrep "a href" |gsed 's,.*">,google-,;s,/.*,,' |ggrep -v "\.\.$" | awk "/$2/"
curl -s "$GINDEX/apache/" |ggrep "a href" |gsed 's,.*">,google-,;s,/.*,,' |ggrep -v "\.\.$" | awk "/$2/"
else
curl -s "$GINDEX/ofl/" |grep "a href" |sed 's,.*">,google-,;s,/.*,,' |grep -v "\.\.$" | awk "/$2/"
curl -s "$GINDEX/apache/" |grep "a href" |sed 's,.*">,google-,;s,/.*,,' |grep -v "\.\.$" | awk "/$2/"
fi
;;
moo)
echo "This fnt does not have cow powers."
Expand Down

0 comments on commit fbf1662

Please sign in to comment.