We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12d08d6 commit 0196835Copy full SHA for 0196835
ci_scripts/base_util.sh
@@ -86,10 +86,17 @@ debug() {
86
local var_name="$1"
87
local var_value="${!var_name}" # Indirect reference to get the value
88
if [[ -f "$var_value" ]]; then
89
+ # Prints out the supplied file path and the content of the file
90
echo "[DEBUG] $var_name: Content of file $var_value:"
91
cat "$var_value"
92
else
- echo "[DEBUG] $var_name: $var_value"
93
+ if [[ -z "$var_value" ]]; then
94
+ # Prints out the supplied string's value
95
+ echo "[DEBUG] $var_name"
96
+ else
97
+ # Prints out the supplied variable name and value
98
+ echo "[DEBUG] $var_name: $var_value"
99
+ fi
100
fi
101
102
}
0 commit comments