Skip to content

Commit

Permalink
Fixing gtar on macOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paebbels committed Jan 21, 2025
1 parent 02e3619 commit 0c22b91
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ runs:
fi
if [[ "${{ runner.os }}" == "macOS" ]]; then
printf "::group::${ANSI_LIGHT_BLUE}%s${ANSI_NOCOLOR}\n" "Install newer 'bash' via homebrew ..."
brew install bash
printf "::endgroup::\n"
tarProg="gtar"
else
tarProg="tar"
Expand Down Expand Up @@ -266,7 +270,7 @@ runs:
fi
printf "::group::${ANSI_LIGHT_BLUE}Removing unwanted files from '${{ inputs.tarball-name }}' ...:${ANSI_NOCOLOR}\n"
while IFS=$'\r\n' read -r file; do
while IFS=$' \r\n' read -r file; do
printf " %s\n" "${file}"
${tarProg} -vf "${{ inputs.tarball-name }}" --delete "${file}"
done <<<$(${tarProg} -tf "${{ inputs.tarball-name }}" | grep -E '^\.|/\.')
Expand Down

0 comments on commit 0c22b91

Please sign in to comment.