We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38d49d1 commit 3a1cef1Copy full SHA for 3a1cef1
src/share/bin/jtreg.sh
@@ -1,6 +1,6 @@
1
#!/bin/sh
2
#
3
-# Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 1998, 2024, Oracle and/or its affiliates. All rights reserved.
4
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5
6
# This code is free software; you can redistribute it and/or modify it
@@ -65,7 +65,7 @@
65
66
case "`uname -s`" in
67
CYGWIN* ) cygwin=1 ;;
68
- Linux ) if grep -qi Microsoft /proc/version ; then wsl=1 ; fi ;;
+ Linux ) if test -f /proc/version && grep -qi Microsoft /proc/version ; then wsl=1 ; fi ;;
69
esac
70
71
# Determine jtreg installation directory
0 commit comments