Something went wrong. Try again.
Mirroring: https://github.com/MunifTanjim/scripts.sh
Something went wrong. Try again.
scripts.sh setup-postman
831 B · 35 lines
at main
123456789101112131415161718192021222324252627282930313233343536#!/usr/bin/env bash
cd /tmp || exit
echo "Installing Postman..."_postman_url="https://dl.pstmn.io/download/latest/linux64"_postman_dir="/opt/Postman"
echo "Downloading Source Archive..."wget -q --show-progress ${_postman_url} -O postman.tar.gztar -xzf postman.tar.gzrm postman.tar.gz
echo "Installation Directory: ${_postman_dir}"if [[ -d "${_postman_dir}" ]]; then sudo rm -rf ${_postman_dir}fisudo mv Postman ${_postman_dir}
echo "Setting up Postman binary: postman"sudo ln -nsf ${_postman_dir}/Postman /usr/local/bin/postman
echo "Adding Application Shortcut..."cat > ${HOME}/.local/share/applications/postman.desktop <<EOL[Desktop Entry]Encoding=UTF-8Name=PostmanExec=postmanIcon=${_postman_dir}/app/resources/app/assets/icon.pngTerminal=falseType=ApplicationCategories=Development;EOL
echo "Done!"