Last active
August 29, 2015 13:56
-
-
Save d11wtq/8973058 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
vagrant@local /vagrant $ babashka vm | |
-> vm | |
-> docker | |
`- is met? | |
0 | |
vagrant@local /vagrant $ echo $? | |
1 |
This file contains hidden or 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
docker() { | |
is_met() { | |
which docker 2>/dev/null | |
} | |
meet() { | |
pkg_name=app-emulation/docker | |
sudo emerge $pkg_name --autounmask-write | |
sudo etc-update --automode -3 | |
sudo emerge $pkg_name | |
} | |
process | |
} |
This file contains hidden or 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
vm() { | |
requires docker | |
} |
It's a good bug :) It even led me to write my provisioner like this, for added clarity:
(cd /vagrant && babashka vm; [[ $? = 1 ]])
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah, definitely bug.