setup: ask user to continue linking if one symlink couldn't be created

This commit is contained in:
Thomas Preisner 2017-07-27 14:32:15 +02:00
parent 7f6ad5cbbb
commit 7b385368b0

View file

@ -14,8 +14,16 @@ link()
local dst="$2" local dst="$2"
if test -e "$dst" && ! test -L "$dst"; then if test -e "$dst" && ! test -L "$dst"; then
echo "No symlink $dst" echo "File $dst exists and is no symlink.\nIgnore and continue? (y/N)"
read answer
case $answer in
[Yy]*)
return
;;
*)
exit 1 exit 1
;;
esac
fi fi
if installed printf; then if installed printf; then