diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-22 15:52:58 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-07-22 15:52:58 +0200 |
commit | f3c45b7be09fc7970b550d0d4724fcd0b98ba727 (patch) | |
tree | 7488cd414c16473dd1cf3bb47a4515c688a18054 | |
parent | Update (diff) | |
download | dotfiles-bsd-f3c45b7be09fc7970b550d0d4724fcd0b98ba727.tar.gz dotfiles-bsd-f3c45b7be09fc7970b550d0d4724fcd0b98ba727.tar.bz2 dotfiles-bsd-f3c45b7be09fc7970b550d0d4724fcd0b98ba727.tar.xz dotfiles-bsd-f3c45b7be09fc7970b550d0d4724fcd0b98ba727.tar.zst dotfiles-bsd-f3c45b7be09fc7970b550d0d4724fcd0b98ba727.zip |
Added returns
Diffstat (limited to '')
-rwxr-xr-x | .local/bin/system-upgrade | 8 |
1 files 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 { |