Created
June 5, 2018 14:59
-
-
Save EricPSU/f31b72011a875de9e1279d184c2b8a9c to your computer and use it in GitHub Desktop.
Install latest version of Postman
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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