Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

fix: sudo chown/chgrp commands #282

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/commands/pack/deb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ export default class PackDeb extends Command {
await qq.write([workspace, 'DEBIAN/control'], scripts.control(buildConfig, debArch(arch)))
await qq.chmod([workspace, 'usr/lib', config.dirname, 'bin', config.bin], 0o755)
await qq.x(`ln -s "../lib/${config.dirname}/bin/${config.bin}" "${workspace}/usr/bin/${config.bin}"`)
await qq.x(`chown -R root "${workspace}"`)
await qq.x(`chgrp -R root "${workspace}"`)
await qq.x(`sudo chown -R root "${workspace}"`)
await qq.x(`sudo chgrp -R root "${workspace}"`)
await qq.x(`dpkg --build "${workspace}" "${qq.join(dist, `${versionedDebBase}.deb`)}"`)
}

Expand Down