summaryrefslogtreecommitdiffstats
path: root/.local/bin/install-port
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-25 19:55:45 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-25 19:55:45 +0100
commit9ab98fd3f1b865df07ae622c139a49b6ab46b2e8 (patch)
treec83d561290bb0cbcb7452ba35a556eb7304c9652 /.local/bin/install-port
parentCommit (diff)
downloaddotfiles-bsd-9ab98fd3f1b865df07ae622c139a49b6ab46b2e8.tar.gz
dotfiles-bsd-9ab98fd3f1b865df07ae622c139a49b6ab46b2e8.tar.bz2
dotfiles-bsd-9ab98fd3f1b865df07ae622c139a49b6ab46b2e8.tar.xz
dotfiles-bsd-9ab98fd3f1b865df07ae622c139a49b6ab46b2e8.tar.zst
dotfiles-bsd-9ab98fd3f1b865df07ae622c139a49b6ab46b2e8.zip
doas update
Diffstat (limited to '.local/bin/install-port')
-rwxr-xr-x.local/bin/install-port14
1 files changed, 7 insertions, 7 deletions
diff --git a/.local/bin/install-port b/.local/bin/install-port
index ea8c1f1..8b99de3 100755
--- a/.local/bin/install-port
+++ b/.local/bin/install-port
@@ -7,14 +7,14 @@ use Term::ANSIColor;
sub upgrdports {
my $upgrd_nbr_cmd = "/usr/sbin/pkg version -l '<' | /usr/bin/wc -l | /usr/bin/awk '{print \$1}'";
if (system(
- '/usr/local/bin/sudo',
+ '/usr/local/bin/doas',
'/usr/sbin/pkg',
'update'
) != 0) {
exit;
}
if (system(
- '/usr/local/bin/sudo',
+ '/usr/local/bin/doas',
'/usr/sbin/portsnap',
'fetch',
'update'
@@ -61,7 +61,7 @@ sub upgrdports {
}
if (system('/usr/local/bin/dash',
'-c',
- '/usr/local/bin/sudo /usr/local/sbin/portmaster -dya --no-confirm') == 0) {
+ '/usr/local/bin/doas /usr/local/sbin/portmaster -dya --no-confirm') == 0) {
my $failed_nbr = `$upgrd_nbr_cmd`;
chomp $failed_nbr;
my $diff_nbr = $upgrd_nbr - $failed_nbr;
@@ -90,15 +90,15 @@ sub configport {
my $port = $_[0];
my $port_basename = $_[1];
if (system(
- '/usr/local/bin/sudo',
+ '/usr/local/bin/doas',
'/usr/bin/make',
'config-recursive') == 0) {
if (system(
- '/usr/local/bin/sudo',
+ '/usr/local/bin/doas',
'/usr/bin/make',
'config-recursive') == 0) {
if (system(
- '/usr/local/bin/sudo',
+ '/usr/local/bin/doas',
'/usr/bin/make',
'config-recursive') == 0) {
}
@@ -144,7 +144,7 @@ sub installport {
my $port = $_[0];
my $port_basename = $_[1];
if (system(
- '/usr/local/bin/sudo',
+ '/usr/local/bin/doas',
'/usr/bin/make',
'install',
'clean'