1
0
mirror of synced 2026-01-25 11:26:31 +00:00

Tighten t/quoted-strings.t a little bit against false positives

This commit is contained in:
Axel Beckert 2010-07-16 17:52:34 +02:00
parent 74ec5d698a
commit c67d218cef

View File

@ -1,6 +1,7 @@
#!/usr/bin/perl -w
#
# Test that every bash script using variables uses " not '.
# Test that every bash script using variables uses " not ' around the
# variable.
#
# Steve
# --
@ -71,7 +72,7 @@ sub checkFile
next if ( $line =~ /grep|sed|echo|awk|find|policy-rc.d|chroot|logMessage/ );
if ( $line =~ /\$/ )
{
ok( $line !~ /\'/, "Non-masked line '$line' in '$file'" );
ok( $line !~ /\'.*\$\.*\'/, "Non-masked line '$line' in '$file'" );
}
}
close( FILE );