Skip to content

Instantly share code, notes, and snippets.

@maravillas
Created October 26, 2010 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maravillas/647028 to your computer and use it in GitHub Desktop.
Save maravillas/647028 to your computer and use it in GitHub Desktop.
If LEIN_JAR is not manually set by the user:
Line 3: set LEIN_VERSION
Line 5: goto SELF_INSTALL
Line 78: check %LEIN_JAR%
At this point, the script exits with this error:
The syntax of the command is incorrect.
If LEIN_JAR is manually set by the user (to "leiningen.jar", for example):
Line 3: set LEIN_VERSION
Line 5: goto SELF_INSTALL
Line 78: check %LEIN_JAR% (assume it is not found)
...
Line 90: set LEIN_JAR to %LEIN_DIR%leiningen-%LEIN_VERSION%-standalone.jar
...
Line 92: download to the filename from line 90
Note that even though LEIN_JAR was set by the user outside of the script, the script ignores it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment