1
0
mirror of synced 2026-04-27 12:48:52 +00:00

t/portable-shell.t: Add checkbashism from Debian's devscripts (if available)

This commit is contained in:
Axel Beckert
2010-04-15 02:56:31 +02:00
parent ce8f44ed36
commit 105e53b355

View File

@@ -85,4 +85,11 @@ sub checkFile
close( INPUT );
is( $result, 0, "Shell script passes our portability check: $file" );
if (-x "/usr/bin/checkbashisms") {
# Check for bashisms
$result = `/usr/bin/checkbashisms '$file'`;
is( $result, '', "Shell script passes check for bashisms: $file" );
}
}