diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-29 06:39:16 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-29 06:39:16 +0200 |
commit | 24456764344370331ad06d2c3ab1ecb13b07fa75 (patch) | |
tree | fe4991ea64c5efac27aab729af9b8affb21cdf76 /.local/bin/system-upgrade | |
parent | Update script going well (diff) | |
download | dotfiles-bsd-24456764344370331ad06d2c3ab1ecb13b07fa75.tar.gz dotfiles-bsd-24456764344370331ad06d2c3ab1ecb13b07fa75.tar.bz2 dotfiles-bsd-24456764344370331ad06d2c3ab1ecb13b07fa75.tar.xz dotfiles-bsd-24456764344370331ad06d2c3ab1ecb13b07fa75.tar.zst dotfiles-bsd-24456764344370331ad06d2c3ab1ecb13b07fa75.zip |
Trying to yes
Diffstat (limited to '.local/bin/system-upgrade')
-rwxr-xr-x | .local/bin/system-upgrade | 7 |
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"'); |