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
1 changed files with 1 additions and 1 deletions

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