From 973fa1b978fbcd99766a7ad5a062e4f762d6f162 Mon Sep 17 00:00:00 2001 From: Martin Carlberg Date: Fri, 17 Sep 2021 10:37:03 +0200 Subject: [PATCH] Fixed: Misspelled function name --- Tools/nib2cib/Converter.j | 4 ++-- Tools/nib2cib/NSNib.j | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Tools/nib2cib/Converter.j b/Tools/nib2cib/Converter.j index ef8155ec0..82db8867a 100644 --- a/Tools/nib2cib/Converter.j +++ b/Tools/nib2cib/Converter.j @@ -125,7 +125,7 @@ ConverterConversionException = @"ConverterConversionException"; if ([outputPath length]) { // Compile xib or nib to make sure we have a non-new format nib. - temporaryNibFilePath = path.join(os.tmpDir(), path.basename(aFilePath) + ".tmp.nib"); + temporaryNibFilePath = path.join(os.tmpdir(), path.basename(aFilePath) + ".tmp.nib"); try { child_process.execSync("/usr/bin/ibtool" + " " + aFilePath + " " + "--compile" + " " + temporaryNibFilePath, {stdio: 'inherit'}); @@ -146,7 +146,7 @@ ConverterConversionException = @"ConverterConversionException"; } // Convert from binary plist to XML plist - var temporaryPlistFilePath = path.join(os.tmpDir(), path.basename(aFilePath) + ".tmp.plist"); + var temporaryPlistFilePath = path.join(os.tmpdir(), path.basename(aFilePath) + ".tmp.plist"); try { child_process.execSync("/usr/bin/plutil" + " " + "-convert" + " " + "xml1" + " " + (temporaryNibFilePathInDirectoryFile || temporaryNibFilePath) + " " + "-o" + " " + temporaryPlistFilePath, {stdio: 'inherit'}); diff --git a/Tools/nib2cib/NSNib.j b/Tools/nib2cib/NSNib.j index eba2f817e..125ffb26e 100644 --- a/Tools/nib2cib/NSNib.j +++ b/Tools/nib2cib/NSNib.j @@ -49,7 +49,7 @@ var path = require("path"); self = [super init]; - var nibPath = path.join(os.tmpDir(), "nib2cib-" + generateID(40) + ".nib"), + var nibPath = path.join(os.tmpdir(), "nib2cib-" + generateID(40) + ".nib"), data = [aCoder decodeObjectForKey:@"NSNibFileData"]; fs.writeFileSync(nibPath, new Uint8Array(data.bytes()), { encoding: "utf16le" });