Skip to content

Instantly share code, notes, and snippets.

@LuisHCK
Last active April 1, 2019 15:43
Show Gist options
  • Select an option

  • Save LuisHCK/aca29415e27c52dfd7238d3fb749b162 to your computer and use it in GitHub Desktop.

Select an option

Save LuisHCK/aca29415e27c52dfd7238d3fb749b162 to your computer and use it in GitHub Desktop.

Revisions

  1. LuisHCK revised this gist Apr 1, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion postman_installer
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    #!/bin/bash
    cd /tmp || exit
    echo "Downloading Postman ..."
    wget -q https://dl.pstmn.io/download/latest/linux?arch=64 -O postman.tar.gz
    wget -q --show-progress https://dl.pstmn.io/download/latest/linux?arch=64 -O postman.tar.gz
    tar -xzf postman.tar.gz
    rm postman.tar.gz

  2. LuisHCK created this gist May 1, 2018.
    27 changes: 27 additions & 0 deletions postman_installer
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    #!/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 "Creating .desktop file..."
    if [ -e "/usr/share/applications/Postman.desktop" ];then
    sudo rm /usr/share/applications/Postman.desktop
    fi
    sudo mv Postman.desktop /usr/share/applications/Postman.desktop

    echo "Installation completed successfully."
    echo "You can use Postman!"