From c80b2748e18971ce117890c8d0d83244e3d418e1 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Thu, 21 May 2020 15:34:34 -0400 Subject: [PATCH] install.sh: Fixes from @code-asher's review --- install.sh | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/install.sh b/install.sh index 110a4916..c3405002 100755 --- a/install.sh +++ b/install.sh @@ -2,7 +2,7 @@ set -eu usage() { - cat <=~/.local] Installs latest code-server on any macOS or Linux system preferring to use the OS package manager. @@ -48,10 +48,10 @@ echo_latest_version() { echo_static_postinstall() { echo - cat </dev/null 2>&1 + command -v "$@" > /dev/null 2>&1 } sh_c() { - if [ ! "${SKIP_LOG-}" ]; then + if [ ! "${SKIP_ECHO-}" ]; then echo echo "+ $*" fi