[Shell] Add process_running function

This commit is contained in:
2016-10-18 20:49:42 -07:00
parent 9d4db8563e
commit ecb77cab2a

View File

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