Skip to content
Snippets Groups Projects
Commit b2e0c134 authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- bugfix, $cmd evaluiert Leerzeichen als separate Parameter, daher

  eval "$cmd" um den kompletten String auszuwerten. Thx @Jörg für Codereview
parent 4a272008
Branches
No related tags found
No related merge requests found
Pipeline #3622 passed
...@@ -421,7 +421,7 @@ exec_cmd() { ...@@ -421,7 +421,7 @@ exec_cmd() {
check_argument_notempty "${log}" check_argument_notempty "${log}"
start_t=$(date +"%s") start_t=$(date +"%s")
debug "scan_file, calling cmd='${cmd}'" debug "scan_file, calling cmd='${cmd}'"
${cmd} >>"${log}" 2>&1 eval "${cmd} >>\"${log}\" 2>&1"
local is_valid=$? local is_valid=$?
check_argument_notempty "${is_valid}" check_argument_notempty "${is_valid}"
stop_t=$(date +"%s") stop_t=$(date +"%s")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment