18 lines
370 B
Bash
Executable File
18 lines
370 B
Bash
Executable File
#! /bin/bash --
|
|
[ ! -z "${GREZZO_MAIN}" ] && return; GREZZO_MAIN=0
|
|
|
|
function this_script_path() {
|
|
unset CDPATH
|
|
echo "$(cd "$(dirname "$(readlink -f -- "${BASH_SOURCE[1]}")")" > /dev/null && pwd -P)"
|
|
}
|
|
|
|
function feat_missing() {
|
|
! command -v "$1" >/dev/null 2>&1
|
|
}
|
|
|
|
function feat_needed() {
|
|
FEAT="$1"
|
|
if feat_missing "$FEAT"; then
|
|
eval "feat_add_$FEAT"
|
|
fi
|
|
} |