Updated copyright info, added separators and missing exports
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# Various utilitary functions
|
||||
# This file is part of the init.sh project
|
||||
# Copyright (c) 2019-2022 Geoffray Levasseur <fatalerrors@geoffray-levasseur.org>
|
||||
# Copyright (c) 2019-2024 Geoffray Levasseur <fatalerrors@geoffray-levasseur.org>
|
||||
# ------------------------------------------------------------------------------
|
||||
# This file is distributed under 3-clause BSD license.
|
||||
# The complete license agreement can be obtained at:
|
||||
@@ -16,6 +16,7 @@ stdtime()
|
||||
date --rfc-3339=seconds | sed -e 's/ /-/' -e 's/://g' | cut -d'+' -f1
|
||||
}
|
||||
export -f stdtime
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
@@ -33,6 +34,7 @@ function_exists() {
|
||||
fi
|
||||
}
|
||||
export -f function_exists
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
@@ -46,6 +48,7 @@ get_mod_name()
|
||||
basename $1 | cut -f 1 -d '.'
|
||||
}
|
||||
export -f get_mod_name
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
@@ -57,6 +60,8 @@ trim()
|
||||
unset string
|
||||
}
|
||||
export -f trim
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# Dump the keyboard's buffer
|
||||
@@ -67,6 +72,7 @@ dump_key_buffer()
|
||||
done
|
||||
}
|
||||
export -f dump_key_buffer
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
|
||||
# EOF
|
||||
|
||||
Reference in New Issue
Block a user