Skip to content

Commit

Permalink
Fix template generation (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
sumo-drosiek authored Dec 29, 2020
1 parent 4ded843 commit 21a5089
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/commands/template
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ tmpfile="$(mktemp /tmp/values.yaml.XXXXXX)"
extra_params=''
# Kubectl can take some time before stdin is available for reading
# thats why we check if just before it's required
if read -t "${STDIN_WAIT_S}"; then
cat <&0 > "${tmpfile}"
if read -t "${STDIN_WAIT_S}" REPLY; then
# Save first line read from stdin
echo "${REPLY}" > "${tmpfile}"
# Save rest of the stdin
cat <&0 >> "${tmpfile}"
extra_params="-f${tmpfile}"
fi

Expand Down

0 comments on commit 21a5089

Please sign in to comment.