-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes to portfolio after merge of big ugly patch and "do" file bugs w…
…hen running in a container or avoiding using a container for clean.
- Loading branch information
1 parent
3f5a54b
commit bc97374
Showing
2 changed files
with
11 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
#!/bin/bash | ||
|
||
ROOT=$(dirname $(realpath $BASH_SOURCE[0])) | ||
if [ -v DEVCONTAINER_ENV ]; then | ||
BUNDLE=bundle | ||
else | ||
source $ROOT/bin/setup | ||
fi | ||
|
||
if [ "$1" == "clean" ]; then | ||
${ROOT}/bin/clean | ||
else | ||
# really long way of invoking rake, but renamed to 'do' | ||
$BUNDLE exec --gemfile $ROOT/Gemfile ruby -r rake -e "Rake.application.init('do');Rake.application.load_rakefile;Rake.application.top_level" -- $@ | ||
exit $? | ||
fi | ||
|
||
source $ROOT/bin/setup | ||
|
||
# really long way of invoking rake, but renamed to 'do' | ||
$BUNDLE exec --gemfile $ROOT/Gemfile ruby -r rake -e "Rake.application.init('do');Rake.application.load_rakefile;Rake.application.top_level" -- $@ |
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