From 28dbdfa364a107f17e80fce6a117f9f4c47cb575 Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Fri, 22 Nov 2019 10:14:25 +0900 Subject: [PATCH] feat: Use path.join --- src/installer.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/installer.ts b/src/installer.ts index 517f4ef..49bc59f 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -3,6 +3,7 @@ import * as tc from '@actions/tool-cache'; import * as io from '@actions/io'; import getOS from './get-os'; import getURL from './get-url'; +import * as path from 'path'; export default async function installer(version: string) { try { @@ -15,7 +16,7 @@ export default async function installer(version: string) { const hugoURL: string = getURL(osName, extended, version); core.debug(`hugoURL: ${hugoURL}`); - const hugoPath: string = `${process.env.HOME}/bin`; + const hugoPath: string = path.join(`${process.env.HOME}`, 'bin'); await io.mkdirP(hugoPath); core.addPath(hugoPath);