Skip to content

Commit f2489b6

Browse files
committed
chore: fix output redirection
1 parent a5b5c53 commit f2489b6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/scripts/hermetic_library_generation.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,11 @@ if [[ "${showcase_mode}" == "true" ]]; then
106106
fi
107107

108108
# get changed library list.
109-
changed_libraries=$(python hermetic_build/common/cli/get_changed_libraries.py create \
109+
changed_libraries_file=$(mktemp)
110+
python hermetic_build/common/cli/get_changed_libraries.py create \
110111
--baseline-generation-config-path="${baseline_generation_config}" \
111-
--current-generation-config-path="${generation_config}")
112+
--current-generation-config-path="${generation_config}" | tee > "${changed_libraries_file}"
113+
changed_libraries=$(cat "${changed_libraries_file}")
112114
echo "Changed libraries are: ${changed_libraries:-"No changed library"}."
113115

114116
# run hermetic code generation docker image.

0 commit comments

Comments
 (0)