mirror of
https://github.com/Matir/skel.git
synced 2026-05-26 13:35:42 -07:00
Make install script run on FreeBSD.
This commit is contained in:
17
install.sh
17
install.sh
@@ -1,14 +1,21 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -o nounset
|
set -o nounset
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
|
||||||
|
case $(uname) in
|
||||||
|
Linux)
|
||||||
FINDTYPE="-xtype"
|
FINDTYPE="-xtype"
|
||||||
|
;;
|
||||||
if [ `uname` == 'Darwin' ] ; then
|
Darwin|*BSD)
|
||||||
# MacOS specifics
|
|
||||||
FINDTYPE="-type"
|
FINDTYPE="-type"
|
||||||
fi
|
;;
|
||||||
|
*)
|
||||||
|
echo "Unknown OS: $(uname), guessing no GNU utils."
|
||||||
|
FINDTYPE="-type"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
function prerequisites {
|
function prerequisites {
|
||||||
if which zsh > /dev/null 2>&1 ; then
|
if which zsh > /dev/null 2>&1 ; then
|
||||||
|
|||||||
Reference in New Issue
Block a user