mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-22 08:57:35 +01:00
Add clean command and fix critical script issue
This commit is contained in:
parent
56e3c7f06c
commit
142fc0d3c5
6
paper
6
paper
@ -89,6 +89,12 @@ case "$1" in
|
||||
"s" | "server")
|
||||
cd "$basedir/Paper-Server"
|
||||
;;
|
||||
"c" | "clean")
|
||||
rm -rf Paper-API
|
||||
rm -rf Paper-Server
|
||||
rm -rf work
|
||||
echo "Cleaned build files"
|
||||
;;
|
||||
"e" | "edit")
|
||||
case "$2" in
|
||||
"s" | "server")
|
||||
|
@ -27,7 +27,7 @@ fi
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
shopt -s expand_aliases
|
||||
alias md5sum='md5 -r'
|
||||
echo "Using an alias for md5sum on OS X"
|
||||
echo "Using an alias for md5sum on macOS"
|
||||
fi
|
||||
|
||||
checksum=$(md5sum "$jarpath.jar" | cut -d ' ' -f 1)
|
||||
|
Loading…
Reference in New Issue
Block a user