diff options
Diffstat (limited to 'src/cpt-lib.in')
-rw-r--r-- | src/cpt-lib.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cpt-lib.in b/src/cpt-lib.in index 30b1f2b..9ddee72 100644 --- a/src/cpt-lib.in +++ b/src/cpt-lib.in @@ -1792,8 +1792,8 @@ pkg_updates(){ # Read version and release information from the installed packages # and repository. - read -r db_ver db_rel < "$pkg/version" - read -r re_ver re_rel < "$(pkg_find "$pkg_name")/version" + read -r db_ver db_rel < "$pkg/version" || exit 1 + read -r re_ver re_rel < "$(pkg_find "$pkg_name")/version" || exit 1 # Compare installed packages to repository packages. [ "$db_ver-$db_rel" != "$re_ver-$re_rel" ] && { |