aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2016-10-12 14:09:25 +0100
committerRenato Golin <renato.golin@linaro.org>2016-10-12 14:09:25 +0100
commitdd4fee9e895c17d997e9bd80fba89540e88fa73e (patch)
treeef0cf686d5ba89b64d7848bd9b2ac0a1aac05c85
parent8ad9fca0a131c8eb68b1a656009e01925cecf1de (diff)
downloadlinaro-scripts-dd4fee9e895c17d997e9bd80fba89540e88fa73e.tar.gz
[cron] Simplify running check
Change-Id: Ic55229405393f0692f9158df9efa9143f404eeca
-rwxr-xr-xhelpers/llvm-cron-build2
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