Open source AI coding agent. Designed for large projects and real world tasks.
Go aiai-agentsai-developer-toolsai-toolsclicommand-linedeveloper-toolsgitgolanggpt-4llmopenaipolyglot-programmingterminalterminal-basedterminal-ui
fix(install): fix for subsequent installations
Ryan Sonshineab7b8291b30c
diff --git a/app/cli/install.sh b/app/cli/install.shindex c2424a05..55d49de2 100644--- a/app/cli/install.sh+++ b/app/cli/install.sh@@ -47,7 +47,7 @@ elsefi# Set Version-if [[ -z "${PLANDEX_VERSION}" ]]; then+if [[ -z "${PLANDEX_VERSION}" ]]; thenVERSION=$(curl -sL https://plandex.ai/cli-version.txt)elseVERSION=$PLANDEX_VERSION@@ -72,7 +72,7 @@ download_plandex () {url="${RELEASES_URL}/${ENCODED_TAG}/plandex_${VERSION}_${PLATFORM}_${ARCH}.tar.gz"- mkdir plandex_install_tmp+ mkdir -p plandex_install_tmpcd plandex_install_tmpecho "Downloading Plandex tarball from $url"@@ -114,7 +114,7 @@ download_plandex () {if [ $UID -eq 0 ]then# we are root- mv plandex /usr/local/bin/+ mv plandex /usr/local/bin/elif hash sudo 2>/dev/null;then# not root, but can sudo@@ -123,9 +123,9 @@ download_plandex () {echo "ERROR: This script must be run as root or be able to sudo to complete the installation."exit 1fi-+echo "Plandex is installed in /usr/local/bin"- fi+ fi# create 'pdx' alias, but don't ovewrite existing pdx commandif [ ! -x "$(command -v pdx)" ]; then