mirror of
https://github.com/fspc/dswim.git
synced 2025-02-22 08:33:24 -05:00
Now swim won't exit when a package is not installed, so that -qi or -ql works
without stopping.
This commit is contained in:
parent
cd139b15eb
commit
bb7ee96ce4
@ -68,7 +68,7 @@ sub description {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
print "package $argument is not installed\n";
|
print "package $argument is not installed\n";
|
||||||
exit;
|
return "not installed";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
untie %db;
|
untie %db;
|
||||||
|
@ -532,7 +532,7 @@ sub file {
|
|||||||
if (defined $argument) {
|
if (defined $argument) {
|
||||||
if (!defined $db{"$argument"}) {
|
if (!defined $db{"$argument"}) {
|
||||||
print "package $argument is not installed\n";
|
print "package $argument is not installed\n";
|
||||||
exit;
|
return "not installed";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
nfile(\%commands);
|
nfile(\%commands);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user