From 9045af7ebd8aa005f4be146e3a0bd43be65067d4 Mon Sep 17 00:00:00 2001 From: RoachZhao Date: Thu, 12 Nov 2020 21:00:22 +0800 Subject: [PATCH] Add option f and n for ln command. To avoid error File exists. --- lib/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/install.sh b/lib/install.sh index f7deb9f..0557ced 100644 --- a/lib/install.sh +++ b/lib/install.sh @@ -12,4 +12,4 @@ LIBDIR=$(cd $(dirname $0); pwd) python3 -m venv ${LIBDIR}/venv $LIBDIR/venv/bin/pip3 install -U pip $LIBDIR/venv/bin/pip3 install doq -ln -s "${LIBDIR}/venv/bin/doq" "${LIBDIR}/doq" +ln -sfn "${LIBDIR}/venv/bin/doq" "${LIBDIR}/doq"