File tree Expand file tree Collapse file tree 8 files changed +55
-0
lines changed Expand file tree Collapse file tree 8 files changed +55
-0
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,13 @@ setlocal enabledelayedexpansion
3
3
4
4
SET scriptpath = %~dp0
5
5
SET diagpath = %scriptpath:~0 ,-1 %
6
+ SET libpath = %diagpath% \lib\NUL
6
7
8
+ IF NOT EXIST %libpath% (
9
+ ECHO " Runtimes library does not exist - make sure you are running the "
10
+ ECHO " archive with 'dist' in the name, not the one labeled: 'source'."
11
+ EXIT
12
+ )
7
13
set JAVA_EXEC = java
8
14
if not defined JAVA_HOME (
9
15
set JAVA_EXEC = java
Original file line number Diff line number Diff line change 2
2
3
3
scriptDir=$0
4
4
scriptDir=${scriptDir/ \/ diagnostics.sh/ $' ' }
5
+ libDir=$scriptDir ' /lib'
6
+
7
+ if [ -d " libDir" ]; then
8
+ echo " Runtimes library does not exist - make sure you are running the "
9
+ echo " archive with 'dist-' in the name, not the one labeled: 'source'."
10
+ exit
11
+ fi
5
12
6
13
if [ -x " $JAVA_HOME /bin/java" ]; then
7
14
JAVA=" $JAVA_HOME /bin/java"
Original file line number Diff line number Diff line change @@ -3,6 +3,13 @@ setlocal enabledelayedexpansion
3
3
4
4
SET scriptpath = %~dp0
5
5
SET diagpath = %scriptpath:~0 ,-1 %
6
+ SET libpath = %diagpath% \lib\NUL
7
+
8
+ IF NOT EXIST %libpath% (
9
+ ECHO " Runtimes library does not exist - make sure you are running the "
10
+ ECHO " archive with 'dist' in the name, not the one labeled: 'source'."
11
+ EXIT
12
+ )
6
13
7
14
set JAVA_EXEC = java
8
15
if not defined JAVA_HOME (
Original file line number Diff line number Diff line change 2
2
3
3
scriptDir=$0
4
4
scriptDir=${scriptDir/ \/ export-monitoring.sh/ $' ' }
5
+ libDir=$scriptDir ' /lib'
6
+
7
+ if [ -d " libDir" ]; then
8
+ echo " Runtimes library does not exist - make sure you are running the "
9
+ echo " archive with 'dist' in the name, not the one labeled: 'source'."
10
+ exit
11
+ fi
5
12
6
13
if [ -x " $JAVA_HOME /bin/java" ]; then
7
14
JAVA=" $JAVA_HOME /bin/java"
Original file line number Diff line number Diff line change @@ -3,6 +3,13 @@ setlocal enabledelayedexpansion
3
3
4
4
SET scriptpath = %~dp0
5
5
SET diagpath = %scriptpath:~0 ,-1 %
6
+ SET libpath = %diagpath% \lib\NUL
7
+
8
+ IF NOT EXIST %libpath% (
9
+ ECHO " Runtimes library does not exist - make sure you are running the "
10
+ ECHO " archive with 'dist' in the name, not the one labeled: 'source'."
11
+ EXIT
12
+ )
6
13
7
14
set JAVA_EXEC = java
8
15
if not defined JAVA_HOME (
Original file line number Diff line number Diff line change 2
2
3
3
scriptDir=$0
4
4
scriptDir=${scriptDir/ \/ import-monitoring.sh/ $' ' }
5
+ libDir=$scriptDir ' /lib'
6
+
7
+ if [ -d " libDir" ]; then
8
+ echo " Runtimes library does not exist - make sure you are running the "
9
+ echo " archive with 'dist' in the name, not the one labeled: 'source'."
10
+ exit
11
+ fi
5
12
6
13
if [ -x " $JAVA_HOME /bin/java" ]; then
7
14
JAVA=" $JAVA_HOME /bin/java"
Original file line number Diff line number Diff line change @@ -3,6 +3,13 @@ setlocal enabledelayedexpansion
3
3
4
4
SET scriptpath = %~dp0
5
5
SET diagpath = %scriptpath:~0 ,-1 %
6
+ SET libpath = %diagpath% \lib\NUL
7
+
8
+ IF NOT EXIST %libpath% (
9
+ ECHO " Runtimes library does not exist - make sure you are running the "
10
+ ECHO " archive with 'dist' in the name, not the one labeled: 'source'."
11
+ EXIT
12
+ )
6
13
7
14
set JAVA_EXEC = java
8
15
if not defined JAVA_HOME (
Original file line number Diff line number Diff line change 2
2
3
3
scriptDir=$0
4
4
scriptDir=${scriptDir/ \/ scrub.sh/ $' ' }
5
+ libDir=$scriptDir ' /lib'
6
+
7
+ if [ -d " libDir" ]; then
8
+ echo " Runtimes library does not exist - make sure you are running the "
9
+ echo " archive with 'dist-' in the name, not the one labeled: 'source'."
10
+ exit
11
+ fi
5
12
6
13
if [ -x " $JAVA_HOME /bin/java" ]; then
7
14
JAVA=" $JAVA_HOME /bin/java"
You can’t perform that action at this time.
0 commit comments