Skip to content

Commit

Permalink
args logic change
Browse files Browse the repository at this point in the history
  • Loading branch information
N129BZ committed Aug 13, 2024
1 parent 7446041 commit 22c1eaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions make.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ let nm = 0;
let arg = process.argv.slice(2);

if (arg.length >= 1) {
passedarg = true;
if (arg[0] === "*") {
resp = arg[0];
}
else {
passedarg = true;
nm = Number(arg[0]);
console.log(`Processing chart number ${nm}`);
resp = "1";
Expand All @@ -110,7 +110,7 @@ else {
}

if (resp.length > 0 && resp !== "0" ) {
if (passedarg && resp === "*") {
if (resp === "*") {
console.log("\nProcessing all 53 chart areas...\n");
for (var i = 0; i < 53; i++) {
parray.push(i);
Expand Down

0 comments on commit 22c1eaf

Please sign in to comment.