From ddb95a3701946b39c350d854a8fb19f9cb975a34 Mon Sep 17 00:00:00 2001 From: "ben@coder.com" Date: Mon, 13 Jun 2022 18:09:15 -0500 Subject: [PATCH 1/2] remove binary exists --- install.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 795c1af367bc6..e32721a0f3151 100755 --- a/install.sh +++ b/install.sh @@ -85,7 +85,8 @@ echo_latest_version() { echo_standalone_postinstall() { cath < Date: Mon, 13 Jun 2022 23:36:24 +0000 Subject: [PATCH 2/2] fix lint and format errors --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index e32721a0f3151..032a792ae09a7 100755 --- a/install.sh +++ b/install.sh @@ -397,7 +397,7 @@ install_standalone() { # Remove the file if it already exists to # avoid https://github.com/coder/coder/issues/2086 if [ -f "$COPY_LOCATION" ]; then - "$sh_c" rm $COPY_LOCATION + "$sh_c" rm "$COPY_LOCATION" fi # Copy the binary to the correct location.