From 24456764344370331ad06d2c3ab1ecb13b07fa75 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 29 Jul 2020 06:39:16 +0200 Subject: Trying to yes --- .local/bin/system-upgrade | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to '.local/bin/system-upgrade') 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"'); -- cgit v1.2.3