Worklet: Install Zoom on MacOS

Hi all, here’s a Worklet to install Zoom on MacOS

Evaluation:

#!/bin/bash

#Checks whether zoom.us.app is installed in the /Applications directory, if not, Exit 1 code and goes to next step

if [[ -d "/Applications/zoom.us.app" ]]; then
        echo "Zoom is installed."
        exit 0
else
        echo "Zoom is not installed."
        exit 1
fi

Remediation:

#!/bin/bash

echo -e "Downloading Zoom..."

#Downloads Zoom pkg to /tmp/

curl -L -o "/tmp/zoompkg.pkg" https://zoom.us/client/latest/Zoom.pkg

echo -e "Installing Zoom..."

#Runs the installer

sudo installer -pkg /tmp/zoompkg.pkg -target /

echo -e "Cleaning up..."
rm -f "/tmp/zoompkg.pkg"