mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
Fix ./paper edit continue for Windows
This commit is contained in:
parent
2f66bb72fc
commit
c5bb0ccf0a
2 changed files with 7 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -26,6 +26,7 @@ bin/
|
||||||
dist/
|
dist/
|
||||||
manifest.mf
|
manifest.mf
|
||||||
|
|
||||||
|
/work/Temp/
|
||||||
work/1.*
|
work/1.*
|
||||||
work/Minecraft
|
work/Minecraft
|
||||||
work/BuildData
|
work/BuildData
|
||||||
|
|
10
paper
10
paper
|
@ -125,7 +125,8 @@ case "$1" in
|
||||||
"e" | "edit")
|
"e" | "edit")
|
||||||
case "$2" in
|
case "$2" in
|
||||||
"s" | "server")
|
"s" | "server")
|
||||||
export PAPER_LAST_EDIT="$basedir/Paper-Server"
|
mkdir -p "$basedir/work/Temp"
|
||||||
|
echo "$basedir/Paper-Server" > "$basedir/work/Temp/PAPER_LAST_EDIT"
|
||||||
cd "$basedir/Paper-Server"
|
cd "$basedir/Paper-Server"
|
||||||
(
|
(
|
||||||
set -e
|
set -e
|
||||||
|
@ -136,7 +137,8 @@ case "$1" in
|
||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
"a" | "api")
|
"a" | "api")
|
||||||
export PAPER_LAST_EDIT="$basedir/Paper-API"
|
mkdir -p "$basedir/work/Temp"
|
||||||
|
echo "$basedir/Paper-API" > "$basedir/work/Temp/PAPER_LAST_EDIT"
|
||||||
cd "$basedir/Paper-API"
|
cd "$basedir/Paper-API"
|
||||||
(
|
(
|
||||||
set -e
|
set -e
|
||||||
|
@ -147,8 +149,8 @@ case "$1" in
|
||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
"c" | "continue")
|
"c" | "continue")
|
||||||
cd "$PAPER_LAST_EDIT"
|
cd "$( < "$basedir/work/Temp/PAPER_LAST_EDIT")"
|
||||||
unset PAPER_LAST_EDIT
|
rm -f "$basedir/work/Temp/PAPER_LAST_EDIT"
|
||||||
(
|
(
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue