summaryrefslogtreecommitdiffstats
path: root/.local/bin/system-upgrade
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/system-upgrade')
-rwxr-xr-x.local/bin/system-upgrade7
1 files changed, 4 insertions, 3 deletions
diff --git a/.local/bin/system-upgrade b/.local/bin/system-upgrade
index b8fbcaf..0541863 100755
--- a/.local/bin/system-upgrade
+++ b/.local/bin/system-upgrade
@@ -15,6 +15,7 @@ use constant {
GREP_PATH => '/usr/bin/grep',
WC_PATH => '/usr/bin/wc',
TR_PATH => '/usr/bin/tr',
+ YES_PATH => '/usr/bin/yes',
TEE_PATH => '/usr/bin/tee',
FREEBSD_UPDATE_PATH => '/usr/sbin/freebsd-update',
PKG_PATH => '/usr/sbin/pkg',
@@ -138,9 +139,9 @@ sub ports_update {
}
if (
system(
- PORTMASTER_PATH,
- '-dya',
- '--no-confirm'
+ DASH_PATH,
+ '-c',
+ YES_PATH . 'q | ' . PORTMASTER_PATH . ' -dya --no-confirm'
) == 0
) {
user_shell(NOTIFY_PATH . ' "Upgrade complete!" "Ports upgrade installed successfully\nTotal: ' . $pre_amount . ' installed"');