Skip to content

Commit

Permalink
chown quickcss/main.css
Browse files Browse the repository at this point in the history
  • Loading branch information
EastArctica authored Aug 14, 2023
1 parent 768d60d commit 2565537
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/util.mts
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,8 @@ if (process.platform === "linux") {
const QUICK_CSS_FILE = join(CONFIG_PATHS.quickcss, "main.css");
if (!existsSync(QUICK_CSS_FILE)) {
writeFileSync(QUICK_CSS_FILE, "");
if (process.platform === "linux") {
const { uid: REAL_UID, gid: REAL_GID } = statSync(join(CONFIG_PATH, ".."));
chownSync(QUICK_CSS_FILE, REAL_UID, REAL_GID);
}
}

0 comments on commit 2565537

Please sign in to comment.