From b2e0c134b9a0820cc50b8b5d759ce6d101a5f2e6 Mon Sep 17 00:00:00 2001 From: Andreas Romeyke <andreas.romeyke@slub-dresden.de> Date: Wed, 22 Feb 2023 16:56:43 +0100 Subject: [PATCH] =?UTF-8?q?-=20bugfix,=20$cmd=20evaluiert=20Leerzeichen=20?= =?UTF-8?q?als=20separate=20Parameter,=20daher=20=20=20eval=20"$cmd"=20um?= =?UTF-8?q?=20den=20kompletten=20String=20auszuwerten.=20Thx=20@J=C3=B6rg?= =?UTF-8?q?=20f=C3=BCr=20Codereview?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- validate_workflow.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validate_workflow.sh b/validate_workflow.sh index 608d5e4..836695c 100755 --- a/validate_workflow.sh +++ b/validate_workflow.sh @@ -421,7 +421,7 @@ exec_cmd() { check_argument_notempty "${log}" start_t=$(date +"%s") debug "scan_file, calling cmd='${cmd}'" - ${cmd} >>"${log}" 2>&1 + eval "${cmd} >>\"${log}\" 2>&1" local is_valid=$? check_argument_notempty "${is_valid}" stop_t=$(date +"%s") -- GitLab