Skip to content

Commit

Permalink
Allowed no arguments with default "Release" config
Browse files Browse the repository at this point in the history
This is to let people still double click on the batch script to create the installer.
  • Loading branch information
L4ZZA committed Jul 12, 2020
1 parent 70dee67 commit 897ada4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/create_installer.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
@rem Prevent env variables to escape to the calling environment
SETLOCAL

rem By Garret Wilson

SET CONFIG=%~1
SET DEFAULT_CONFIG=Release

IF "%CONFIG%" == "" (
GOTO usage
SET CONFIG=%DEFAULT_CONFIG%
echo No Configuration passed. Defaulted to %CONFIG%
echo Usage: create_installer.bat ^<configuration^> [-s]
)

@rem redefine variables in case already defined in the calling environment
Expand Down

0 comments on commit 897ada4

Please sign in to comment.