minor style improvements

This commit is contained in:
fabolous005 2024-10-01 23:31:58 +02:00
parent 1758ab6947
commit 82743c6f67
2 changed files with 9 additions and 4 deletions

9
etools
View File

@ -4,7 +4,7 @@
# NOTE: parse config, gets run when sourced
function etools_configure() {
ETOOLS_DIR=$(dirname "${BASH_SOURCE[0]}")
ETOOLS_DIR="$PWD/$(dirname "${BASH_SOURCE[0]}")"
. "$ETOOLS_DIR"/config.sh
_configure
"$ETOOLS_DIR"/config.sh
@ -123,6 +123,10 @@ function etools_unset() {
ETOOLS_COLOR_ERROR \
ETOOLS_GREP_CMD \
ETOOLS_DEBUG \
ETOOLS_CHECK_LIVE \
ETOOLS_CHECK_TESTING \
package_weights \
package_offset \
etools_configure \
etools_smart_find \
etools_get_version \
@ -133,9 +137,10 @@ function etools_unset() {
eerror;
do
unset $variable
done
"$ETOOLS_DIR"/helper.sh
"$ETOOLS_DIR"/config.sh
done
unset ETOOLS_DIR
}

View File

@ -122,7 +122,7 @@ function _default_sort() {
done
}
function _etools_print_assoc_array {
function _etools_print_assoc_array() {
for key in "${!_etools_packages[@]}"; do
echo "$key: ${_etools_packages[$key]}"
done