1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-23 15:40:07 -07:00

kiss: Fix alternatives bug. Closes #111

This commit is contained in:
Dylan Araps 2020-02-12 10:38:38 +02:00
parent 5bfc5cb0ae
commit 5d96b2871f
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

4
kiss
View File

@ -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]'