From 0a2d7605ce0ea3b3955e99fade4cb1868a76fc43 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Tue, 5 Jun 2018 16:25:27 +0900 Subject: [PATCH] fix btcpay-update --- btcpay-update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/btcpay-update.sh b/btcpay-update.sh index 2557dca..e78540c 100755 --- a/btcpay-update.sh +++ b/btcpay-update.sh @@ -21,7 +21,7 @@ for scriptname in *.sh; do fi echo "Adding symlink of $scriptname to /usr/bin" chmod +x $scriptname - rm /usr/bin/$scriptname &> /dev/null + [ -e /usr/bin/$scriptname ] && rm /usr/bin/$scriptname &> /dev/null ln -s "$(pwd)/$scriptname" /usr/bin done