Skip to content
Snippets Groups Projects
Commit 122c6aca authored by Mohamed AZIKIOU's avatar Mohamed AZIKIOU
Browse files

fix: replace username

parent bb4c883d
No related branches found
No related tags found
No related merge requests found
Pipeline #15542 failed
import { exec as execCallback } from 'child_process'; import { exec as execCallback } from 'child_process';
import { userInfo } from 'os';
import { promisify } from 'util'; import { promisify } from 'util';
import { PROJECT_SRC_PATH } from '../../core/config'; import { PROJECT_SRC_PATH } from '../../core/config';
const exec = promisify(execCallback); const exec = promisify(execCallback);
export default async function aquirePermissions() { export default async function aquirePermissions() {
await exec(`sudo chown -R ${process.env.USER} ${PROJECT_SRC_PATH}`); await exec(`sudo chown -R ${userInfo().username} ${PROJECT_SRC_PATH}`);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment