Skip to content

Commit

Permalink
Skip okbuck if we just want to kill the buck daemon.
Browse files Browse the repository at this point in the history
  • Loading branch information
runningcode committed Apr 20, 2017
1 parent da24efe commit 2f23ab1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
11 changes: 10 additions & 1 deletion buckw
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
##
## Buck wrapper script to invoke okbuck when needed, before running buck
##
## Created by OkBuck Gradle Plugin on : Wed Mar 29 16:37:26 PDT 2017
## Created by OkBuck Gradle Plugin on : Wed Apr 19 21:13:00 PDT 2017
##
#########################################################################

Expand Down Expand Up @@ -191,6 +191,15 @@ setupBuckRun ( ) {
setupBuckBinary
}
# Handle parameters and flags
handleParams ( ) {
# Go directly to kill. Do not run okbuck.
if [[ "kill" == $1 ]]; then
SKIP_OKBUCK=true
fi
}
handleParams "$@"
setupBuckRun
# Invoke buck binary with arguments
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,15 @@ setupBuckRun ( ) {
setupBuckBinary
}
# Handle parameters and flags
handleParams ( ) {
# Go directly to kill. Do not run okbuck.
if [[ "kill" == $1 ]]; then
SKIP_OKBUCK=true
fi
}
handleParams "$@"
setupBuckRun
# Invoke buck binary with arguments
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Fri Mar 31 15:13:29 PDT 2017
#Sat Apr 15 01:58:29 PDT 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
Expand Down

0 comments on commit 2f23ab1

Please sign in to comment.