Skip to content

Commit

Permalink
Fix UNIX: Turn off automatic updates
Browse files Browse the repository at this point in the history
  • Loading branch information
monkbroc committed May 10, 2024
1 parent fd0f326 commit 9de6914
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion installer/unix/install-cli
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ MANIFEST_HOST=${MANIFEST_HOST:-binaries.particle.io}
MANIFEST_URL="https://$MANIFEST_HOST/particle-cli/manifest.json"
SHELL_CONFIG="$HOME/.bash_profile"

DISABLE_AUTOMATIC_UPDATES=0
if [ -n "$VERSION" ]; then
MANIFEST_URL="https://$MANIFEST_HOST/particle-cli/manifest-${VERSION}.json"
DISABLE_AUTOMATIC_UPDATES=1
fi
echo
echo 'PARTICLE CLI SETUP...'
Expand Down Expand Up @@ -111,7 +113,7 @@ mv -f "$TMP_FILE" "$DEST"
chmod +x "$DEST"

# Turn off automatic updates when installing a specific version
if [ -n "$VERSION" ]; then
if [ "$DISABLE_AUTOMATIC_UPDATES" -eq 1 ]; then
echo
echo ":::: Disabling automatic updates since a specific version was installed."
echo ":::: Reenable automatic updates by running \"particle update-cli --enable-updates\""
Expand Down

0 comments on commit 9de6914

Please sign in to comment.