Skip to content

Commit 0c22b91

Browse files
committed
Fixing gtar on macOS.
1 parent 02e3619 commit 0c22b91

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

action.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ runs:
143143
fi
144144
145145
if [[ "${{ runner.os }}" == "macOS" ]]; then
146+
printf "::group::${ANSI_LIGHT_BLUE}%s${ANSI_NOCOLOR}\n" "Install newer 'bash' via homebrew ..."
147+
brew install bash
148+
printf "::endgroup::\n"
149+
146150
tarProg="gtar"
147151
else
148152
tarProg="tar"
@@ -266,7 +270,7 @@ runs:
266270
fi
267271
268272
printf "::group::${ANSI_LIGHT_BLUE}Removing unwanted files from '${{ inputs.tarball-name }}' ...:${ANSI_NOCOLOR}\n"
269-
while IFS=$'\r\n' read -r file; do
273+
while IFS=$' \r\n' read -r file; do
270274
printf " %s\n" "${file}"
271275
${tarProg} -vf "${{ inputs.tarball-name }}" --delete "${file}"
272276
done <<<$(${tarProg} -tf "${{ inputs.tarball-name }}" | grep -E '^\.|/\.')

0 commit comments

Comments
 (0)