fix getting wrong index from arguments
This commit is contained in:
parent
f0790eec1e
commit
11484eeec3
@ -61,7 +61,7 @@ async function size(path) {
|
|||||||
|
|
||||||
(async function() {
|
(async function() {
|
||||||
if (args.length == 1) {
|
if (args.length == 1) {
|
||||||
const texture = args[1]
|
const texture = args[0]
|
||||||
|
|
||||||
if (!fs.existsSync(`${root_main}${texture}.png`)) {
|
if (!fs.existsSync(`${root_main}${texture}.png`)) {
|
||||||
process.stderr.write(`${texture}.png does not exist\n`)
|
process.stderr.write(`${texture}.png does not exist\n`)
|
||||||
|
Loading…
Reference in New Issue
Block a user