commit 61b1832c5131f2ebd8ac3264da0e680816faf547
parent 845462826692c7fa6ea024ae077f2535d3b4f6ad
Author: Dylan Araps <dylan.araps@gmail.com>
Date: Sat, 14 Sep 2019 10:42:19 +0300
kiss: clean up
Diffstat:
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/kiss b/kiss
@@ -668,11 +668,7 @@ pkg_install() {
# If the package is already installed (and this is an upgrade) make a
# backup of the manifest file.
- if [ -f "$sys_db/$pkg_name/manifest" ]; then
- old_manifest=$(cat "$sys_db/$pkg_name/manifest")
- else
- old_manifest=
- fi
+ old_manifest=$(cat "$sys_db/$pkg_name/manifest" 2>/dev/null ||:)
# This is repeated multiple times. Better to make it a function.
pkg_rsync() {