Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (15 sloc) 376 Bytes
# Zsh and Bash are DecentShells™:
[ -n "$ZSH_VERSION" ] && return 0
if [ -n "$BASH_VERSION" ]; then
[ -z "$BASHPID" ] && return 0
[ "$$" == "$BASHPID" ] && return 0
fi
# Else spew debug info for indecent shell:
if type pstree >/dev/null 2>&1; then
pstree -h
else
ps ajhf
fi
echo "Attempt to run from some shell ($SHELL) we don't support yet."
return 1
# vim:ft=sh