Skip to content

Commit

Permalink
quote variables, Closes: #977832
Browse files Browse the repository at this point in the history
quote variables when used in pattern matching
  • Loading branch information
Mrfai committed Jul 3, 2021
1 parent 21932b3 commit 3ec672e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/setup-storage/Commands.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1559,7 +1559,7 @@ sub order_commands {
if (defined($FAI::commands{$i}{pre})) {
foreach (split(/,/, $FAI::commands{$i}{pre})) {
my $cur = $_;
next if scalar(grep(m{^$cur$}, @pre_deps));
next if scalar(grep(m{^\Q$cur\E$}, @pre_deps));
$all_matched = 0;
last;
}
Expand Down

0 comments on commit 3ec672e

Please sign in to comment.