summaryrefslogtreecommitdiffstats
path: root/.local/bin/system-upgrade
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-22 15:52:58 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-22 15:52:58 +0200
commitf3c45b7be09fc7970b550d0d4724fcd0b98ba727 (patch)
tree7488cd414c16473dd1cf3bb47a4515c688a18054 /.local/bin/system-upgrade
parentUpdate (diff)
downloaddotfiles-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 '.local/bin/system-upgrade')
-rwxr-xr-x.local/bin/system-upgrade8
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 {