Skip to content

Commit

Permalink
Quote bare m for syntax highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
briandfoy committed Jul 5, 2023
1 parent fa6f6fc commit 6f56085
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/mkdir
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@ foreach my $directory (@ARGV) {
next;
}

next unless exists $options {m};
next unless exists $options{'m'};

my $realmode = $options {m};
my $realmode = $options{'m'};
if ($symbolic) {
$realmode = SymbolicMode::mod ($options {m}, $dir) or
$realmode = SymbolicMode::mod ($options{'m'}, $dir) or
die "invalid mode: $options{m}\n";
}
chmod oct ($realmode) => $dir or warn "$!\n";
Expand Down

0 comments on commit 6f56085

Please sign in to comment.