Created
July 14, 2021 14:09
-
-
Save blackwood821/a8cce3ad06ec02e6ee07ca1f7cf6ef35 to your computer and use it in GitHub Desktop.
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
function is_docker | |
{ | |
if [ "${container}" = "docker" ]; then | |
return 0 | |
else | |
return 1 | |
fi | |
} | |
function is_triton | |
{ | |
if command -v /usr/sbin/mdata-get >/dev/null 2>&1; then | |
return 0 | |
else | |
return 1 | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment