Skip to content

Commit e02ffe7

Browse files
committed
Modify error checking in portable shell batch files
Ref #196
1 parent cc4ac4b commit e02ffe7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

share/portable/portableshell.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ echo * URL - https://www.strawberryperl.com/
3535
echo * See README.TXT for more info
3636
echo ----------------------------------------------
3737
perl -MConfig -e "printf("""Perl executable: %%s\nPerl version : %%vd / $Config{archname}\n\n""", $^X, $^V)" 2>nul
38-
if ERRORLEVEL 1 echo FATAL ERROR: 'perl' does not work; check if your strawberry pack is complete!
38+
if %ERRORLEVEL% == "1" echo FATAL ERROR: 'perl' does not work; check if your strawberry pack is complete!
3939

4040
cmd /K
4141

share/portable/portableshell.pdl.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ echo * or you can use dev tools like: gcc, g++, gfortran, gmake
4242
echo * see README.TXT for more info
4343
echo ----------------------------------------------
4444
perl -MConfig -MPDL -e "printf("""Perl executable: %%s\nPerl version : %%vd / $Config{archname}\nPDL version : %%s\n\n""", $^X, $^V, $PDL::VERSION)" 2>nul
45-
if ERRORLEVEL 1 echo FATAL ERROR: 'perl' does not work; check if your strawberry pack is complete!
45+
if %ERRORLEVEL% == "1" echo FATAL ERROR: 'perl' does not work; check if your strawberry pack is complete!
4646

4747
cmd /K
4848

0 commit comments

Comments
 (0)