git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/test-driver: Fix bashism in Machine.pm.

Thanks to @bjornfor for the note. Signed-off-by: aszlig <aszlig@redmoonstudios.org>

commit2475a6a2393c2b3fd0d53a351ebc41a86c04639e authoraszlig <aszlig@redmoonstudios.org> dateFri 22 May 2015, 08:10 (12 years ago) parentf12208c
1 file changed+1−1
nixos/lib/test-driver/Machine.pm+1−1
nixos/lib/test-driver/Machine.pm+1−1
@@ -499,7 +499,7 @@ sub screenshot {
499499sub getScreenText {
500500 my ($self) = @_;
501501
502− system("type -P tesseract &> /dev/null") == 0
502+ system("command -v tesseract &> /dev/null") == 0
503503 or die "getScreenText used but enableOCR is false";
504504
505505 my $text;