these should also be readonly
Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
parent
9516f9d5fe
commit
92b54483bd
3
ssm
3
ssm
|
@ -3,6 +3,7 @@ shopt -s nullglob
|
||||||
|
|
||||||
# Utility functions
|
# Utility functions
|
||||||
is_function() [[ $(type -t $1 2>/dev/null) == 'function' ]]
|
is_function() [[ $(type -t $1 2>/dev/null) == 'function' ]]
|
||||||
|
readonly -f is_function
|
||||||
|
|
||||||
var() {
|
var() {
|
||||||
declare varname=$1; shift
|
declare varname=$1; shift
|
||||||
|
@ -97,7 +98,7 @@ var() {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
}
|
}; readonly -f var
|
||||||
|
|
||||||
## Die. Why not?
|
## Die. Why not?
|
||||||
die() {
|
die() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user