fix a regex typo in run_command

m/|/ is always true as it effectively matches 'nothing or nothing
anywhere in a string'
looks like it was supposed to be m/\|/
This commit is contained in:
Wolfgang Bumiller 2015-05-28 09:27:14 +02:00 committed by Dietmar Maurer
parent 74b3593bf5
commit 22d4efe612

View File

@ -248,7 +248,7 @@ sub run_command {
if (!ref($cmd)) {
$cmdstr = $cmd;
if ($cmd =~ m/|/) {
if ($cmd =~ m/\|/) {
# see 'man bash' for option pipefail
$cmd = [ '/bin/bash', '-c', "set -o pipefail && $cmd" ];
} else {