Skip to content

Commit 435194a

Browse files
authored
Fix deleting non-existent file
1 parent 77f1048 commit 435194a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build-php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ jobs:
140140
if [[ "${{ matrix.os }}" == "windows-latest" ]]; then
141141
powershell Compress-Archive -Path "../static-php-cli/buildroot/bin/php.exe" -DestinationPath "bin/${{ env.SPC_BUILD_OS }}/${{ env.SPC_BUILD_ARCH }}/php-${{ env.PHP_VERSION }}.zip" -Force
142142
else
143-
rm bin/${{ env.SPC_BUILD_OS }}/${{ env.SPC_BUILD_ARCH }}/php-${{ env.PHP_VERSION }}.zip
143+
rm -f bin/${{ env.SPC_BUILD_OS }}/${{ env.SPC_BUILD_ARCH }}/php-${{ env.PHP_VERSION }}.zip
144144
mkdir -p tmp-bin
145145
cp ../static-php-cli/buildroot/bin/php tmp-bin/
146146
cd tmp-bin

0 commit comments

Comments
 (0)