fixed indentation
This commit is contained in:
@@ -84,21 +84,21 @@ show_version()
|
||||
|
||||
local mod=
|
||||
for mod in $MYPATH/modules/*.sh; do
|
||||
# Ran in a subshell to not pollute environment
|
||||
(
|
||||
. $mod
|
||||
local modname=$(get_mod_name $mod)
|
||||
local version=VER_$modname
|
||||
# Ran in a subshell to not pollute environment
|
||||
(
|
||||
. $mod
|
||||
local modname=$(get_mod_name $mod)
|
||||
local version=VER_$modname
|
||||
|
||||
echo -e "\t$BWhite$modname${DEFAULTCOL}: $BGreen${!version}$DEFAULTCOL"
|
||||
echo -e "\t$BWhite$modname${DEFAULTCOL}: $BGreen${!version}$DEFAULTCOL"
|
||||
|
||||
unset modname version
|
||||
)
|
||||
unset modname version
|
||||
)
|
||||
done
|
||||
unset mod
|
||||
|
||||
if [[ $(id -u) -ne 0 ]]; then
|
||||
echo -e "\n${BYellow}Warning:$DEFAULTCOL That script requires superuser rights to work."
|
||||
echo -e "\n${BYellow}Warning:$DEFAULTCOL That script requires superuser rights to work."
|
||||
fi
|
||||
}
|
||||
export -f show_version
|
||||
|
||||
Reference in New Issue
Block a user