diff options
author | aszlig <aszlig@redmoonstudios.org> | 2015-05-22 08:10:17 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2015-05-22 08:10:17 +0200 |
commit | 2475a6a2393c2b3fd0d53a351ebc41a86c04639e (patch) | |
tree | fbaf8828ba68ada81f70a73a49ee207750dff5da /nixos | |
parent | f12208c5a4833b2b38fdd01cb7cfe23a7cfb79b7 (diff) | |
download | nixpkgs-2475a6a2393c2b3fd0d53a351ebc41a86c04639e.tar nixpkgs-2475a6a2393c2b3fd0d53a351ebc41a86c04639e.tar.gz nixpkgs-2475a6a2393c2b3fd0d53a351ebc41a86c04639e.tar.bz2 nixpkgs-2475a6a2393c2b3fd0d53a351ebc41a86c04639e.tar.lz nixpkgs-2475a6a2393c2b3fd0d53a351ebc41a86c04639e.tar.xz nixpkgs-2475a6a2393c2b3fd0d53a351ebc41a86c04639e.tar.zst nixpkgs-2475a6a2393c2b3fd0d53a351ebc41a86c04639e.zip |
nixos/test-driver: Fix bashism in Machine.pm.
Thanks to @bjornfor for the note. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/lib/test-driver/Machine.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/lib/test-driver/Machine.pm b/nixos/lib/test-driver/Machine.pm index 824f23bcc4b..db2c1a68692 100644 --- a/nixos/lib/test-driver/Machine.pm +++ b/nixos/lib/test-driver/Machine.pm @@ -499,7 +499,7 @@ sub screenshot { sub getScreenText { my ($self) = @_; - system("type -P tesseract &> /dev/null") == 0 + system("command -v tesseract &> /dev/null") == 0 or die "getScreenText used but enableOCR is false"; my $text; |