Skip to content
Snippets Groups Projects
Commit 7429f82c authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Allow any-case for library name used with -lib=name option

parent 35633e90
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,16 @@ function archive_date(file)
return t;
}
function proper_lib_name(name)
{
for(var i in file_area.lib_list) {
var lib = file_area.lib_list[i];
if(lib.name.toLowerCase() == name.toLowerCase())
return lib.name;
}
return name;
}
var uploader;
var listfile;
var date_fmt;
......@@ -78,7 +88,7 @@ for(var i = 0; i < argc; i++) {
continue;
}
if(opt.indexOf("lib=") == 0) {
var libname = opt.slice(4);
var libname = proper_lib_name(opt.slice(4));
if(!file_area.lib[libname]) {
alert("Library not found: " + libname);
exit(1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment