minor style improvements
This commit is contained in:
parent
1758ab6947
commit
82743c6f67
11
etools
11
etools
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
# NOTE: parse config, gets run when sourced
|
# NOTE: parse config, gets run when sourced
|
||||||
function etools_configure() {
|
function etools_configure() {
|
||||||
ETOOLS_DIR=$(dirname "${BASH_SOURCE[0]}")
|
ETOOLS_DIR="$PWD/$(dirname "${BASH_SOURCE[0]}")"
|
||||||
. "$ETOOLS_DIR"/config.sh
|
. "$ETOOLS_DIR"/config.sh
|
||||||
_configure
|
_configure
|
||||||
"$ETOOLS_DIR"/config.sh
|
"$ETOOLS_DIR"/config.sh
|
||||||
@ -123,6 +123,10 @@ function etools_unset() {
|
|||||||
ETOOLS_COLOR_ERROR \
|
ETOOLS_COLOR_ERROR \
|
||||||
ETOOLS_GREP_CMD \
|
ETOOLS_GREP_CMD \
|
||||||
ETOOLS_DEBUG \
|
ETOOLS_DEBUG \
|
||||||
|
ETOOLS_CHECK_LIVE \
|
||||||
|
ETOOLS_CHECK_TESTING \
|
||||||
|
package_weights \
|
||||||
|
package_offset \
|
||||||
etools_configure \
|
etools_configure \
|
||||||
etools_smart_find \
|
etools_smart_find \
|
||||||
etools_get_version \
|
etools_get_version \
|
||||||
@ -133,9 +137,10 @@ function etools_unset() {
|
|||||||
eerror;
|
eerror;
|
||||||
do
|
do
|
||||||
unset $variable
|
unset $variable
|
||||||
"$ETOOLS_DIR"/helper.sh
|
|
||||||
"$ETOOLS_DIR"/config.sh
|
|
||||||
done
|
done
|
||||||
|
"$ETOOLS_DIR"/helper.sh
|
||||||
|
"$ETOOLS_DIR"/config.sh
|
||||||
|
unset ETOOLS_DIR
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -122,7 +122,7 @@ function _default_sort() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
function _etools_print_assoc_array {
|
function _etools_print_assoc_array() {
|
||||||
for key in "${!_etools_packages[@]}"; do
|
for key in "${!_etools_packages[@]}"; do
|
||||||
echo "$key: ${_etools_packages[$key]}"
|
echo "$key: ${_etools_packages[$key]}"
|
||||||
done
|
done
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user