Merge pull request #823 from vector-im/fix-tmp-dir
Fix .tmp being created in `/`
This commit is contained in:
commit
f7839135a4
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ export function buildColorizedSVG(svgLocation, primaryColor, secondaryColor) {
|
||||||
const coloredSVGCode = getColoredSvgString(svgCode, primaryColor, secondaryColor);
|
const coloredSVGCode = getColoredSvgString(svgCode, primaryColor, secondaryColor);
|
||||||
const fileName = svgLocation.match(/.+[/\\](.+\.svg)/)[1];
|
const fileName = svgLocation.match(/.+[/\\](.+\.svg)/)[1];
|
||||||
const outputName = `${fileName.substring(0, fileName.length - 4)}-${createHash(coloredSVGCode)}.svg`;
|
const outputName = `${fileName.substring(0, fileName.length - 4)}-${createHash(coloredSVGCode)}.svg`;
|
||||||
const outputPath = resolve(__dirname, "../../.tmp");
|
const outputPath = resolve(__dirname, "./.tmp");
|
||||||
try {
|
try {
|
||||||
mkdirSync(outputPath);
|
mkdirSync(outputPath);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue