aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-14 07:42:19 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-14 07:42:19 +0000
commit16c2afe53277f31e6b98633aac575ac30637a4b7 (patch)
treeec7a07b1f000a6cbbb766f504b3bb390b3dcd054 /kiss
parenta73e32265b54f7c9fe0c444e24493aea538b34b9 (diff)
downloadcpt-16c2afe53277f31e6b98633aac575ac30637a4b7.tar.gz
kiss: clean up
FossilOrigin-Name: 7615a15dd32372a822c64e81e1577cf90b03a8f58870fe71fe2f2e5953345639
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss6
1 files changed, 1 insertions, 5 deletions
diff --git a/kiss b/kiss
index 8bf9881..68e6dbe 100755
--- 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() {