]> arthur.barton.de Git - netdata.git/blobdiff - plugins.d/loopsleepms.sh.inc
Merge pull request #1230 from ktsaou/master
[netdata.git] / plugins.d / loopsleepms.sh.inc
index 6de93043c93a5e6823bbfc2aced0fcb69ec0224d..4f2e02351d9565035ae06d4bf9e2a1798831f624 100644 (file)
@@ -1,6 +1,6 @@
 # no need for shebang - this file is included from other scripts
 
-LOOPSLEEP_DATE="$(which date)"
+LOOPSLEEP_DATE="$(which date 2>/dev/null || command -v date 2>/dev/null)"
 if [ -z "$LOOPSLEEP_DATE" ]
     then
     echo >&2 "$0: ERROR: Cannot find the command 'date' in the system path."