04.install_tools_postman.sh 461 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. # fail if any commands fails
  3. set -e
  4. # debug log
  5. #set -x
  6. mkdir -p ~/bin
  7. cd ~/bin || return
  8. # Remove previous file
  9. rm -rf Postman-linux-x64.tar.gz
  10. # Download new version
  11. curl -o "Postman-linux-x64.tar.gz" -L "https://dl.pstmn.io/download/latest/linux64"
  12. # Remove previous directory
  13. rm -rf Postman
  14. # Remove previous symlink
  15. rm -f postman
  16. # Extract new version
  17. tar -xzvf Postman-linux-x64.tar.gz
  18. # Create new symlink
  19. ln -s Postman/app/Postman postman