Skip to content

Commit 32c95d9

Browse files
committed
ci: add -o -f to unzip and force cleanup of source folder
1 parent 06b09bb commit 32c95d9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/update-built-docs.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@ if [ ! -d ./api-docs/phpstorm-stubs ]; then
99
mkdir ./api-docs/phpstorm-stubs
1010
fi
1111

12+
rm -rf ./api-docs/sources/phpstorm-stubs
13+
1214
if [ ! -d ./api-docs/sources/phpstorm-stubs ]; then
1315
mkdir ./api-docs/sources/phpstorm-stubs
1416
fi
1517

1618
# Download, extract and move
1719
curl -L -s -o phpstorm-stubs.zip https://github.com/JetBrains/phpstorm-stubs/archive/refs/heads/master.zip
18-
rm -rf ./api-docs/sources/phpstorm-stubs/*
19-
unzip -q -j -d ./api-docs/sources/phpstorm-stubs ./phpstorm-stubs.zip && rm ./phpstorm-stubs.zip
20+
21+
unzip -f -o -q -j -d ./api-docs/sources/phpstorm-stubs ./phpstorm-stubs.zip && rm ./phpstorm-stubs.zip
2022

2123
# Try as hard as possible to cleanup the dir
2224
git ls-files ./api-docs/phpstorm-stubs/ | xargs -r -n 1 rm

0 commit comments

Comments
 (0)