Last active
June 14, 2018 15:44
-
-
Save simbalinux/baf1ee56e059ed06a3150ffcc13a84e5 to your computer and use it in GitHub Desktop.
check_if_installed
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
#!/usr/bin/bash | |
if [ $(command -v httpd) ]; then echo 'installed'; else echo 'not installed'; fi | |
# or | |
if [ $(which httpd) ]; then echo 'installed'; else echo 'not installed'; fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment