aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2019-04-27 12:28:58 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2019-04-27 12:30:48 +0200
commit963cb0b202cec014ec32adb92c29da61ff4fde97 (patch)
treeb6afb8930b98e018f9b66b60e484505bde92fe17
parentd4171aca2f5fe94700fb45726f91bd9436f221de (diff)
downloadsbotools-963cb0b202cec014ec32adb92c29da61ff4fde97.tar.xz
sboinstall: fix --reinstall option
Closes #72.
-rwxr-xr-xsboinstall2
1 files changed, 2 insertions, 0 deletions
diff --git a/sboinstall b/sboinstall
index 9df3188..b7dc536 100755
--- a/sboinstall
+++ b/sboinstall
@@ -156,6 +156,8 @@ FIRST: for my $sbo (@$build_queue) {
my $inst_msg = sprintf "%s (%s) is already installed.", $name, $inst_names{$name}{pkg};
if ($reinstall and not $non_int) {
next FIRST unless prompt("$inst_msg Do you want to reinstall from SBo?", default => 'no');
+ } elsif ($reinstall) {
+ say "$inst_msg Reinstalling.";
} else {
say $inst_msg;
next FIRST;