mirror of
https://github.com/m8tin/cis.git
synced 2026-06-02 14:56:58 +02:00
Using base.module.sh, replaced basename and dirname
This commit is contained in:
@@ -34,7 +34,7 @@ function allChecks() {
|
||||
! [ -x "${_CURRENT_CHECK}" ] \
|
||||
&& continue
|
||||
_CHECK_FOUND="true"
|
||||
_NAME="$(basename ${_CURRENT_CHECK} | cut -d'.' -f1)"
|
||||
_NAME="$(echo ${_CURRENT_CHECK##*/} | cut -d'.' -f1)"
|
||||
_CONTEXT="$(echo ${_NAME} | cut -d'_' -f1)"
|
||||
_CHECK="$(echo ${_NAME} | cut -d'_' -f2- | tr '_' ' ')"
|
||||
_RESULT="$("${_CURRENT_CHECK}" && echo OK || echo FAIL)"
|
||||
|
||||
Reference in New Issue
Block a user