Commit 81565a3f authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Move has() to .shell/lib/shared.sh

parent ac7a9e28
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -3,6 +3,8 @@
[ -n "${SOURCED_SHELL_FUNCS-}" ] && return
SOURCED_SHELL_FUNCS=yes

. ~/.shell/lib/shared.sh

source_first()
{
	for sf in "$@"; do
@@ -17,11 +19,6 @@ source_each()
	done
}

has()
{
	type "$1"
} >/dev/null 2>&1

get_platform()
{
	case "$OSTYPE" in
+5 −0
Original line number Diff line number Diff line
@@ -17,3 +17,8 @@ die() {
	echo >&2 "${BOLD}${SCRIPT_NAME}:${UNBOLD} $*"
	exit $CODE
}

has()
{
	type "$1"
} >/dev/null 2>&1