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
10
setup.sh
10
setup.sh
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue