mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-12 23:13:48 -05:00
minor change
This commit is contained in:
@@ -202,7 +202,8 @@ _isDir_() {
|
||||
# 0 - Input is a directory
|
||||
# 1 - Input is not a directory
|
||||
# USAGE:
|
||||
# _varIsDir_ "${var}"
|
||||
# _varIsDir_ "${var}"
|
||||
# (_isDir_ "${var}") && echo "Is a directory" || echo "Not a directory"
|
||||
# NOTES:
|
||||
#
|
||||
|
||||
|
||||
@@ -51,7 +51,9 @@ _printArray_() {
|
||||
|
||||
[[ $# == 0 ]] && fatal "Missing required argument to ${FUNCNAME[0]}"
|
||||
|
||||
local _arrayName="${1}"
|
||||
declare -n _arr="${1}"
|
||||
printf "${underline}Printing contents of \${%s${reset}[@]}\n" "${_arrayName}"
|
||||
for _k in "${!_arr[@]}"; do
|
||||
printf "%s = %s\n" "$_k" "${_arr[$_k]}"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user