aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2020-02-12 08:38:37 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2020-02-12 08:38:37 +0000
commit973101ffc8cc80c1e4a85aa08345143ec0e5b8e1 (patch)
tree2e06b32b6948d17f0f3b21d2b35b537873fec87e
parent84caf06a859a81b2dfd350d44ea3f11edfad4645 (diff)
downloadcpt-973101ffc8cc80c1e4a85aa08345143ec0e5b8e1.tar.gz
kiss: Fix alternatives bug. Closes #111
FossilOrigin-Name: a4a39efa62e198273a20faeeae91648d0f0566f27e8ab11b9a53906ba53b4888
-rwxr-xr-xkiss4
1 files changed, 2 insertions, 2 deletions
diff --git a/kiss b/kiss
index d9ab103..7839181 100755
--- a/kiss
+++ b/kiss
@@ -824,7 +824,7 @@ pkg_swap() {
# Convert the current owner to an alternative and rewrite
# its manifest file to reflect this.
- cp -f "$2" "$pkg_owns>${alt#*>}"
+ cp -Pf "$2" "$pkg_owns>${alt#*>}"
sed -i "$(esc "$2" "$PWD/$pkg_owns>${alt#*>}")" \
"../installed/$pkg_owns/manifest"
fi
@@ -1308,7 +1308,7 @@ args() {
l|list) pkg_list "$@" ;;
u|update) pkg_updates ;;
s|search) for pkg; do pkg_find "$pkg" all; done ;;
- v|version) log kiss 1.5.3 ;;
+ v|version) log kiss 1.5.4 ;;
h|help|-h|--help|'')
log 'kiss [a|b|c|i|l|r|s|u|v] [pkg] [pkg] [pkg]'