Created
May 10, 2019 07:33
-
-
Save chenwaichung/7c41178cfbb472e3fdb779e9a50932a8 to your computer and use it in GitHub Desktop.
check env home is set
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
#!/bin/bash | |
if [ -z "$HOME" ] | |
then | |
echo "\$HOME is empty" | |
else | |
echo "\$HOME is NOT empty" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment