projects
/
BK-2020-03.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chore(u/bk-export-min-pubkeys):Remove debug stderr messages
[BK-2020-03.git]
/
unitproc
/
bktemp-checkAppFileDir
diff --git
a/unitproc/bktemp-checkAppFileDir
b/unitproc/bktemp-checkAppFileDir
index d5a620bbf09e422397002c2e1801b9fa8305f114..6059be64df7bbaf3dad0a2839c5727e3cbfe2fd6 100644
(file)
--- a/
unitproc/bktemp-checkAppFileDir
+++ b/
unitproc/bktemp-checkAppFileDir
@@
-65,16
+65,18
@@
checkfile() {
checkdir() {
# Desc: If arg is a dir path, save result in assoc array 'dirRollCall'
# Usage: checkdir arg1 arg2 arg3 ...
checkdir() {
# Desc: If arg is a dir path, save result in assoc array 'dirRollCall'
# Usage: checkdir arg1 arg2 arg3 ...
- # Version 0.1.
1
+ # Version 0.1.
2
# Input: global assoc. array 'dirRollCall'
# Output: adds/updates key(value) to global assoc array 'dirRollCall';
# Input: global assoc. array 'dirRollCall'
# Output: adds/updates key(value) to global assoc array 'dirRollCall';
- # Output: returns 0 if a
pp found,
1 otherwise
+ # Output: returns 0 if a
ll args are dirs;
1 otherwise
# Depends: Bash 5.0.3
local returnState
#===Process Args===
for arg in "$@"; do
# Depends: Bash 5.0.3
local returnState
#===Process Args===
for arg in "$@"; do
- if [ -d "$arg" ]; then
+ if [ -z "$arg" ]; then
+ dirRollCall["(Unspecified Dirname(s))"]="false"; returnState="false";
+ elif [ -d "$arg" ]; then
dirRollCall["$arg"]="true";
if ! [ "$returnState" = "false" ]; then returnState="true"; fi
else
dirRollCall["$arg"]="true";
if ! [ "$returnState" = "false" ]; then returnState="true"; fi
else