File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -9,14 +9,16 @@ if [ ! -d ./api-docs/phpstorm-stubs ]; then
99 mkdir ./api-docs/phpstorm-stubs
1010fi
1111
12+ rm -rf ./api-docs/sources/phpstorm-stubs
13+
1214if [ ! -d ./api-docs/sources/phpstorm-stubs ]; then
1315 mkdir ./api-docs/sources/phpstorm-stubs
1416fi
1517
1618# Download, extract and move
1719curl -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
2224git ls-files ./api-docs/phpstorm-stubs/ | xargs -r -n 1 rm
You can’t perform that action at this time.
0 commit comments