We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd01851 commit a04e0b8Copy full SHA for a04e0b8
1 file changed
Linux/install
@@ -362,7 +362,10 @@ install_pthfile() {
362
print "Symbolic link to ${PTHFILE:t} already exists, good!"
363
else
364
print "Creating symbolic link"
365
- ln -siv ${PTHFILE} ${TGTDIR} || exit $?
+ # On Linux "ln -si" gives zero exit status even if user declines to
366
+ # overwrite existing target. Add test if symbolic link indeed works.
367
+ ln -siv ${PTHFILE} ${TGTDIR} &&
368
+ [[ ${PTHFILE} -ef ${TGTDIR}/${PTHFILE:t} ]] || exit $?
369
fi
370
print
371
}
0 commit comments