Last active
November 27, 2019 07:41
-
-
Save wagura-maurice/0da208fa4d02875f3aaa4247428b2ce8 to your computer and use it in GitHub Desktop.
Installing Postman on Ubuntu 18.04
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 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 | |
| echo "Installing to opt..." | |
| if [ -d "/opt/Postman" ];then | |
| sudo rm -rf /opt/Postman | |
| fi | |
| 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." | |
| echo "You can use Postman!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment