1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-11-04 14:05:41 -07:00

pkg_swap: Fix bug with broken symlinks

This commit is contained in:
Dylan Araps 2020-10-05 09:43:30 +03:00
parent 950c575329
commit 5c2d43e463
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

2
kiss
View File

@ -977,7 +977,7 @@ pkg_swap() {
if [ -d "$alt" ] || [ -d "$2" ]; then
die "source or target is directory"
elif [ ! -e "$alt" ]; then
elif [ ! -h "$alt" ] && [ ! -e "$alt" ]; then
die "alternative '$1 $2' doesn't exist"
elif [ -e "$2" ]; then