summaryrefslogtreecommitdiff
path: root/src/librefetch
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2021-01-22 21:25:40 -0500
committerbill-auger <mr.j.spam.me@gmail.com>2021-07-26 19:20:09 -0400
commitf5d023fee1765b93b49c1737a2b0fc255ba51b1a (patch)
tree18d4fd4a21dd3bbc2c16bb59bc064ba3d4413885 /src/librefetch
parent72e8ae115f4f5a65bffb36c1827e5ac0a0b1647f (diff)
sq wip disabled sig
Diffstat (limited to 'src/librefetch')
-rwxr-xr-xsrc/librefetch/librefetch5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/librefetch/librefetch b/src/librefetch/librefetch
index 92434e2..19e6559 100755
--- a/src/librefetch/librefetch
+++ b/src/librefetch/librefetch
@@ -237,8 +237,11 @@ DBG "librefetch::doit(create) IS_SIG"
# set -x
# FIXME: there is a note about this signature in usage()
# create_signature "${base_dst%.sig}" || exit
- if [[ -n $suffix ]]; then
+# if [[ -n $suffix ]]; then
+ if [[ -n $suffix && -f "$base_dst" ]]; then
+DBG "librefetch::doit(create) RENAME"
mv -f "$base_dst" "$dst"
+DBG "librefetch::doit(create) RENAMED"
fi
else
export PKGDEST=${dst%/*}