projects
/
BK-2020-03.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
style(user/bknpass):Simplify boilerplate
[BK-2020-03.git]
/
unitproc
/
bkt-get_path_hierarchy_level
diff --git
a/unitproc/bkt-get_path_hierarchy_level
b/unitproc/bkt-get_path_hierarchy_level
index a76cb1f64654f5e762bd379f334f4abebc637a3d..7e03981af7104962fdd9233e661bb32733ab115b 100755
(executable)
--- a/
unitproc/bkt-get_path_hierarchy_level
+++ b/
unitproc/bkt-get_path_hierarchy_level
@@
-32,12
+32,12
@@
get_path_hierarchy_level() {
# Append to output
output+=("$level");
# Append to output
output+=("$level");
- #declare -p flag_root level;
+ #declare -p flag_root level;
# debug
((n++));
done;
# Print output
printf "%s\n" "${output[@]}";
((n++));
done;
# Print output
printf "%s\n" "${output[@]}";
-};
+};
# return hierarchy level of lines as integers
# Test the function with the provided lines
printf "\n\n========Test 1========\n"
# Test the function with the provided lines
printf "\n\n========Test 1========\n"