removed idle start brew when it is not needed
This commit is contained in:
parent
cd658d9af9
commit
88b35bd7eb
40
builder
40
builder
@ -817,26 +817,28 @@ function brew ()
|
|||||||
|
|
||||||
mkdir -p "$KFPublishBrewedPC"
|
mkdir -p "$KFPublishBrewedPC"
|
||||||
|
|
||||||
if is_true "$ArgHoldEditor"; then
|
if [[ -n "$PackageBrew" ]]; then
|
||||||
CMD //C "cd /D $(cygpath -w "$KFWin64") && $(basename "$KFEditor") brewcontent -platform=PC $PackageBrew -useunpublished"
|
if is_true "$ArgHoldEditor"; then
|
||||||
if ! brewed "$PackageBrew"; then
|
CMD //C "cd /D $(cygpath -w "$KFWin64") && $(basename "$KFEditor") brewcontent -platform=PC $PackageBrew -useunpublished"
|
||||||
brew_cleanup
|
if ! brewed "$PackageBrew"; then
|
||||||
die "brewing failed"
|
brew_cleanup
|
||||||
fi
|
die "brewing failed"
|
||||||
else
|
fi
|
||||||
CMD //C "cd /D $(cygpath -w "$KFWin64") && $(basename "$KFEditor") brewcontent -platform=PC $PackageBrew -useunpublished" &
|
else
|
||||||
PID="$!"
|
CMD //C "cd /D $(cygpath -w "$KFWin64") && $(basename "$KFEditor") brewcontent -platform=PC $PackageBrew -useunpublished" &
|
||||||
while ps -p "$PID" &> /dev/null
|
PID="$!"
|
||||||
do
|
while ps -p "$PID" &> /dev/null
|
||||||
if brewed "$PackageBrew"; then
|
do
|
||||||
kill "$PID"
|
if brewed "$PackageBrew"; then
|
||||||
break
|
kill "$PID"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
if ! brewed "$PackageBrew"; then
|
||||||
|
brew_cleanup
|
||||||
|
die "brewing failed"
|
||||||
fi
|
fi
|
||||||
sleep 1
|
|
||||||
done
|
|
||||||
if ! brewed "$PackageBrew"; then
|
|
||||||
brew_cleanup
|
|
||||||
die "brewing failed"
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user