diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-09-14 07:42:19 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-09-14 07:42:19 +0000 |
commit | 16c2afe53277f31e6b98633aac575ac30637a4b7 (patch) | |
tree | ec7a07b1f000a6cbbb766f504b3bb390b3dcd054 | |
parent | a73e32265b54f7c9fe0c444e24493aea538b34b9 (diff) | |
download | cpt-16c2afe53277f31e6b98633aac575ac30637a4b7.tar.gz |
kiss: clean up
FossilOrigin-Name: 7615a15dd32372a822c64e81e1577cf90b03a8f58870fe71fe2f2e5953345639
-rwxr-xr-x | kiss | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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() { |