mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-24 12:41:50 +00:00
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:
parent
74b3593bf5
commit
22d4efe612
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user