Created
February 19, 2016 21:57
-
-
Save mwrock/4d4cba7509c254873fad to your computer and use it in GitHub Desktop.
Vagrant windows detect
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
if ((Test-Path $env:systemroot) -and (get-item $env:systemroot).PSIsContainer) { | |
exit 0 | |
} | |
exit 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment