Skip to content

Commit 3a1cef1

Browse files
SendaoYanjaikiran
SendaoYan
authored andcommittedJul 25, 2024
7903763: [jtreg] grep: /proc/version: No such file or directory
Reviewed-by: cstein, jjg
1 parent 38d49d1 commit 3a1cef1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/share/bin/jtreg.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
#
3-
# Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
3+
# Copyright (c) 1998, 2024, Oracle and/or its affiliates. All rights reserved.
44
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
#
66
# This code is free software; you can redistribute it and/or modify it
@@ -65,7 +65,7 @@
6565

6666
case "`uname -s`" in
6767
CYGWIN* ) cygwin=1 ;;
68-
Linux ) if grep -qi Microsoft /proc/version ; then wsl=1 ; fi ;;
68+
Linux ) if test -f /proc/version && grep -qi Microsoft /proc/version ; then wsl=1 ; fi ;;
6969
esac
7070

7171
# Determine jtreg installation directory

0 commit comments

Comments
 (0)
Please sign in to comment.