summaryrefslogtreecommitdiffstats
path: root/modules.d/99memstrack/module-setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/99memstrack/module-setup.sh')
-rwxr-xr-xmodules.d/99memstrack/module-setup.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/modules.d/99memstrack/module-setup.sh b/modules.d/99memstrack/module-setup.sh
index 27563eb..b25a966 100755
--- a/modules.d/99memstrack/module-setup.sh
+++ b/modules.d/99memstrack/module-setup.sh
@@ -1,11 +1,12 @@
#!/bin/bash
check() {
- if ! require_binaries pgrep pkill memstrack; then
- dinfo "memstrack is not available"
- dinfo "If you need to use rd.memdebug>=4, please install memstrack and procps-ng"
- return 1
- fi
+ # If you need to use rd.memdebug>=4, please install all the required binary dependencies
+ require_binaries \
+ pgrep \
+ pkill \
+ memstrack \
+ || return 1
return 0
}