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 19, 2017
1 parent da24efe commit 2ff73a9
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
13 changes: 11 additions & 2 deletions 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 : Tue Apr 18 22:25:10 PDT 2017
##
#########################################################################

Expand Down Expand Up @@ -191,7 +191,16 @@ setupBuckRun ( ) {
setupBuckBinary
}
setupBuckRun
# Handle parameters and flags
handleParams ( ) {
# Go directly to kill. Do not run okbuck, do not collect $200.
if [[ "kill" == $1 ]]; then
SKIP_OKBUCK=true
fi
setupBuckRun
}
handleParams "$@"
# Invoke buck binary with arguments
exec "$BUCK_BINARY" "$@"
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,16 @@ setupBuckRun ( ) {
setupBuckBinary
}
setupBuckRun
# Handle parameters and flags
handleParams ( ) {
# Go directly to kill. Do not run okbuck, do not collect $200.
if [[ "kill" == $1 ]]; then
SKIP_OKBUCK=true
fi
setupBuckRun
}
handleParams "$@"
# Invoke buck binary with arguments
exec "$BUCK_BINARY" "$@"
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#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
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-all.zip

0 comments on commit 2ff73a9

Please sign in to comment.