Skip to content

Commit 4f020a7

Browse files
authored
chore: better debugging - if yarn-install.log exists, dump to console so we can see what went wrong (RHDHBUGS-2735) (#118)
Signed-off-by: Nick Boldt <nboldt@redhat.com>
1 parent 026124f commit 4f020a7

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

export-dynamic/export-dynamic.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,14 @@ run_cli() {
5353
# we WANT cli_args to split by spaces here
5454
# shellcheck disable=SC2068
5555
if ! "${cli_bin[@]}" ${cli_args_split[@]} >/tmp/export-dynamic-cli.log 2>&1; then
56-
echo "Error running CLI: $(cat /tmp/export-dynamic-cli.log)"
56+
echo "Error running CLI: "
57+
echo "##########################################################"
58+
cat /tmp/export-dynamic-cli.log
59+
echo "##########################################################"
60+
if [[ -f yarn-install.log ]]; then
61+
cat yarn-install.log;
62+
echo "##########################################################"
63+
fi
5764
return 1
5865
fi
5966
rm -f /tmp/export-dynamic-cli.log

0 commit comments

Comments
 (0)