Skip to content
Snippets Groups Projects
Commit 4d7a47a1 authored by Jens Steidl's avatar Jens Steidl :baby_chick:
Browse files

- bugfix: moved chmod otherwise return value incorrect, added touch for log file

parent 903b66b7
No related branches found
No related tags found
No related merge requests found
Pipeline #5039 passed
......@@ -425,9 +425,10 @@ exec_cmd() {
check_argument_notempty "${stage}"
check_argument_notempty "${log}"
start_t=$(date +"%s")
touch "${log}"
chmod o+w "${log}"
debug "scan_file, calling cmd='${cmd}'"
eval "${cmd} >>\"${log}\" 2>&1"
chmod o+w "${log}"
local is_valid=$?
check_argument_notempty "${is_valid}"
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