mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix(bin/scripts): Allow script work with git bash (#3841)
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
sudo rm -rf ./docker/build/cache/CMakeFiles
|
||||
sudo rm -rf ./docker/build/cache/deps
|
||||
sudo rm -rf ./docker/build/cache/src
|
||||
sudo rm ./docker/build/cache/*.cmake
|
||||
sudo rm ./docker/build/cache/*.txt
|
||||
sudo rm ./docker/build/cache/*.h
|
||||
sudo rm ./docker/build/cache/*.cpp
|
||||
sudo rm ./docker/build/cache/Makefile
|
||||
if [ "$(id -u)" != "0" ] && [ "$OSTYPE" != "msys" ] ; then
|
||||
echo "Please run the script with sudo"
|
||||
else
|
||||
rm -rf ./docker/build/cache/CMakeFiles
|
||||
rm -rf ./docker/build/cache/deps
|
||||
rm -rf ./docker/build/cache/src
|
||||
rm ./docker/build/cache/*.cmake
|
||||
rm ./docker/build/cache/*.txt
|
||||
rm ./docker/build/cache/*.h
|
||||
rm ./docker/build/cache/*.cpp
|
||||
rm ./docker/build/cache/Makefile
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user