From f3c45b7be09fc7970b550d0d4724fcd0b98ba727 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 22 Jul 2020 15:52:58 +0200 Subject: Added returns --- .local/bin/system-upgrade | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.local/bin/system-upgrade b/.local/bin/system-upgrade index bbf9363..bb348fd 100755 --- a/.local/bin/system-upgrade +++ b/.local/bin/system-upgrade @@ -23,23 +23,23 @@ use constant { }; sub root_shell { - system( + my $ret = system( DASH_PATH, '-c', $_[0] ); - return; + return $ret; } sub user_shell { - system( + my $ret = system( DASH_PATH, '-c', SU_PATH . ' ' . DEFAULT_USER . ' << EOF ' . $_[0] . ' >/dev/null 2>&1 EOF' ); - return; + return $ret; } sub fbsd_update { -- cgit v1.2.3