Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 029345a352
Fetching contributors…

Cannot retrieve contributors at this time

9 lines (7 sloc) 0.441 kB
#Test the shell script thing
use Test::More tests => 3;
use Unicorn::Shell qw( fix_shell check_shell);
is (fix_shell("fake","#!/bin/bash\nif [-e foo -e bar]"), "#!/bin/bash\nif [-e foo] || [-e bar]", "Expands -e works");
is (check_shell("fake","#!/bin/bash\nif [-e foo -e bar]"), 1, "Expands -e works");
is (fix_shell("fake","#!/bin/bash\nif [-e foo -f bar]"), "#!/bin/bash\nif [-e foo -f bar]", "Does not expand -e / -f");
done_testing();
Jump to Line
Something went wrong with that request. Please try again.