Add .inc extension to libs

This commit is contained in:
2021-07-28 00:27:40 +02:00
parent b7a11fc4ee
commit 2573380c21
4 changed files with 0 additions and 0 deletions

23
bashparam.inc Normal file
View File

@@ -0,0 +1,23 @@
#!/hint/bash
declare -A __params
function has_param {
[[ -z ${__params[$1]} ]]
}
function get_param {
echo "${__params[$1]}"
}
# set_param <longname> <value>
function set_param {
if [[ -z $2 ]]; then
>&2 echo "${FUNCNAME}: non-zero value expected"
return 1
fi
$__params[${1:2}]=${2}
}
_bashlib_bashparam=1