mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-10 01:21:46 +01:00
change LAST_EDIT to PAPER_LAST_EDIT for edit commands
LAST_EDIT is way too generic considering it pollutes the users global environment....
This commit is contained in:
parent
f8af5faa43
commit
d291411d94
8
paper
8
paper
@ -99,7 +99,7 @@ case "$1" in
|
|||||||
"e" | "edit")
|
"e" | "edit")
|
||||||
case "$2" in
|
case "$2" in
|
||||||
"s" | "server")
|
"s" | "server")
|
||||||
export LAST_EDIT="$basedir/Paper-Server"
|
export PAPER_LAST_EDIT="$basedir/Paper-Server"
|
||||||
cd "$basedir/Paper-Server"
|
cd "$basedir/Paper-Server"
|
||||||
(
|
(
|
||||||
set -e
|
set -e
|
||||||
@ -110,7 +110,7 @@ case "$1" in
|
|||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
"a" | "api")
|
"a" | "api")
|
||||||
export LAST_EDIT="$basedir/Paper-API"
|
export PAPER_LAST_EDIT="$basedir/Paper-API"
|
||||||
cd "$basedir/Paper-API"
|
cd "$basedir/Paper-API"
|
||||||
(
|
(
|
||||||
set -e
|
set -e
|
||||||
@ -121,8 +121,8 @@ case "$1" in
|
|||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
"c" | "continue")
|
"c" | "continue")
|
||||||
cd "$LAST_EDIT"
|
cd "$PAPER_LAST_EDIT"
|
||||||
unset LAST_EDIT
|
unset PAPER_LAST_EDIT
|
||||||
(
|
(
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user