[Shell] Add process_running function

This commit is contained in:
Ivan Malison 2016-10-18 20:49:42 -07:00
parent 9d4db8563e
commit ecb77cab2a
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -445,6 +445,10 @@ function in_git_directory {
[ -d .git ]
}
function process_running {
[[ ! -z "$(pgrep $@)" ]]
}
function which_readlink {
readlink -f "$(which $1)"
}