-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add helper script until makerdao/plunger#4 is done
- Loading branch information
1 parent
8258b46
commit 53f027a
Showing
2 changed files
with
48 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
# i don't love this, but it works | ||
# usage: keeper-helper plunger --helper | ||
# usage: APP=market-maker-keeper keeper-helper oasis-market-maker-keeper --help | ||
|
||
if [ -n "$APP" ]; then | ||
app=$APP | ||
else | ||
app=$1 | ||
# notice that we do NOT shift here. | ||
fi | ||
|
||
# enter the virtualenv so that when their script calls pyhon, it calls the right python | ||
. "/opt/${app}/bin/activate" | ||
|
||
export PATH="/opt/${app}/src/bin:$PATH" | ||
|
||
exec "$@" |