these should also be readonly

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2018-01-22 20:08:48 +03:00
parent 9516f9d5fe
commit 92b54483bd

3
ssm
View File

@ -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() {