setup: ask user to continue linking if one symlink couldn't be created
This commit is contained in:
parent
7f6ad5cbbb
commit
7b385368b0
1 changed files with 10 additions and 2 deletions
12
setup.sh
12
setup.sh
|
|
@ -14,8 +14,16 @@ link()
|
|||
local dst="$2"
|
||||
|
||||
if test -e "$dst" && ! test -L "$dst"; then
|
||||
echo "No symlink $dst"
|
||||
exit 1
|
||||
echo "File $dst exists and is no symlink.\nIgnore and continue? (y/N)"
|
||||
read answer
|
||||
case $answer in
|
||||
[Yy]*)
|
||||
return
|
||||
;;
|
||||
*)
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
if installed printf; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue