We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16b447d commit 1302f76Copy full SHA for 1302f76
src/utils/getClipboardImage.ts
@@ -61,7 +61,7 @@ const getClipboardImage = async (ctx: IPicGo): Promise<IClipboardImage> => {
61
const imagePath = path.join(ctx.baseDir, `${dayjs().format('YYYYMMDDHHmmss')}.png`)
62
return await new Promise<IClipboardImage>((resolve: Function, reject: Function): void => {
63
const platform = getCurrentPlatform()
64
- const scriptPath = path.join(__dirname, platform2ScriptFilename[platform])
+ const scriptPath = path.join(ctx.baseDir, platform2ScriptFilename[platform])
65
// If the script does not exist yet, we need to write the content to the script file
66
if (!fs.existsSync(scriptPath)) {
67
fs.writeFileSync(
0 commit comments