Skip to content

Instantly share code, notes, and snippets.

@EricPSU
Created June 5, 2018 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EricPSU/f31b72011a875de9e1279d184c2b8a9c to your computer and use it in GitHub Desktop.
Save EricPSU/f31b72011a875de9e1279d184c2b8a9c to your computer and use it in GitHub Desktop.
Install latest version of Postman
#!/bin/bash
cd /tmp || exit
echo "Downloading latest Postman..."
wget -q https://dl.pstmn.io/download/latest/linux?arch=64 -O postman.tar.gz
tar -xzf postman.tar.gz
rm postman.tar.gz
if [ -d "/opt/Postman" ];then
echo "Removing previous installation in /opt/Postman..."
sudo rm -rf /opt/Postman
fi
echo "Installing to /opt/Postman..."
sudo mv Postman /opt/Postman
echo "Creating symbolic link..."
if [ -L "/usr/bin/postman" ];then
sudo rm -f /usr/bin/postman
fi
sudo ln -s /opt/Postman/Postman /usr/bin/postman
echo "Installation completed successfully."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment