diff options
author | Jason Soto <jsitech@live.com> | 2018-03-05 13:19:57 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2018-03-05 13:19:57 +0300 |
commit | 94e4fb4bd9d14e33bedee9c7120a52d7d93dd957 (patch) | |
tree | 09dd413e80f95c8c88e587c71f8b9c5bf2a81399 /include/tests_boot_services | |
parent | 2c9116dc0c8908b600fa9a4c6aea44a9f43db153 (diff) |
Solved null byte bash warning (#523)
Diffstat (limited to 'include/tests_boot_services')
-rw-r--r-- | include/tests_boot_services | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_boot_services b/include/tests_boot_services index 8d69da7a..d55d30cb 100644 --- a/include/tests_boot_services +++ b/include/tests_boot_services @@ -71,7 +71,7 @@ case ${OS} in "Linux") if [ -f /proc/1/cmdline ]; then - FILENAME=$(${AWKBINARY} '/(^\/|init)/ { print $1 }' /proc/1/cmdline) + FILENAME=$(${AWKBINARY} '/(^\/|init)/ { print $1 }' /proc/1/cmdline | tr -d '\0') LogText "Result: cmdline found = ${FILENAME}" ISFILE=$(echo ${FILENAME} | ${GREPBINARY} "^/") if [ ! -z "${ISFILE}" ]; then |