fixed typo in path to binary

This commit is contained in:
Nek-12 2020-08-27 18:02:56 +03:00
parent 8ca164e723
commit b2fc6cc8ed
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ module.exports = async function ({ overwrite_version } = {}) {
); );
for (let bin_path of [ for (let bin_path of [
`/usr/bin/${__notion.split('/')[2]}`, `/usr/bin/${__notion.split('/')[2]}`,
`${__notion}${__notion.split('/')[2]}`, `${__notion}/${__notion.split('/')[2]}`,
]) { ]) {
const bin_script = await fs.readFile(bin_path, 'utf8'); const bin_script = await fs.readFile(bin_path, 'utf8');
if (bin_script.includes('app.asar')) { if (bin_script.includes('app.asar')) {

View File

@ -101,7 +101,7 @@ module.exports = async function ({ overwrite_asar, delete_data } = {}) {
); );
for (let bin_path of [ for (let bin_path of [
`/usr/bin/${__notion.split('/')[2]}`, `/usr/bin/${__notion.split('/')[2]}`,
`${__notion}${__notion.split('/')[2]}`, `${__notion}/${__notion.split('/')[2]}`,
]) { ]) {
const bin_script = await fs.readFile(bin_path, 'utf8'); const bin_script = await fs.readFile(bin_path, 'utf8');
if (!bin_script.includes('app.asar')) { if (!bin_script.includes('app.asar')) {