diff options
author | Renato Golin <renato.golin@linaro.org> | 2016-10-12 14:09:25 +0100 |
---|---|---|
committer | Renato Golin <renato.golin@linaro.org> | 2016-10-12 14:09:25 +0100 |
commit | dd4fee9e895c17d997e9bd80fba89540e88fa73e (patch) | |
tree | ef0cf686d5ba89b64d7848bd9b2ac0a1aac05c85 /helpers | |
parent | 8ad9fca0a131c8eb68b1a656009e01925cecf1de (diff) |
[cron] Simplify running check
Change-Id: Ic55229405393f0692f9158df9efa9143f404eeca
Diffstat (limited to 'helpers')
-rwxr-xr-x | helpers/llvm-cron-build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/llvm-cron-build b/helpers/llvm-cron-build index 5ec4a4c..133dc60 100755 --- a/helpers/llvm-cron-build +++ b/helpers/llvm-cron-build @@ -32,7 +32,7 @@ if [ "$1" = "" ]; then fi # Make sure we're not already running -if [ "$(ps awwux | grep -v grep | grep "$BIN")" != "" ]; then +if ps awwux | grep -v grep | grep "$BIN" > /dev/null; then echo "Already running, won't flog" > "$err" exit 1 fi |