Skip to content

Commit

Permalink
using echo -n instead of printf, to avoid formatting issues if th…
Browse files Browse the repository at this point in the history
…e content contains `%X` format texts
  • Loading branch information
viktorbenei committed Oct 14, 2015
1 parent 72d67de commit c1ab070
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ workflows:
mkdir -p "${tmp_pth}"
envman add --key BITRISE_SOURCE_DIR --value "${tmp_pth}"
- path::./:
- path::./:
inputs:
- content: |-
#!/bin/bash
git log -n 5 --pretty=format:"%h - %s %cr <%an>" --abbrev-commit --date=relative
exit 0
- path::./:
inputs:
- content: |-
Expand Down
2 changes: 1 addition & 1 deletion step.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ if [ ! -z "${script_file_path}" ] ; then
CONFIG_tmp_script_file_path="${script_file_path}"
fi

printf "${content}" > "${CONFIG_tmp_script_file_path}"
echo -n "${content}" > "${CONFIG_tmp_script_file_path}"

debug_echo
${runner_bin} "${CONFIG_tmp_script_file_path}"
Expand Down

0 comments on commit c1ab070

Please sign in to comment.