From f9e33f841c7ac18745ffec6b5878547806fae9bb Mon Sep 17 00:00:00 2001 From: Quad Date: Fri, 21 May 2021 21:29:32 +0200 Subject: [PATCH] Add update script so I don't have to copy-paste from the readme every time --- scripts/gpd-script-update | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 scripts/gpd-script-update diff --git a/scripts/gpd-script-update b/scripts/gpd-script-update new file mode 100755 index 0000000..aaefcf9 --- /dev/null +++ b/scripts/gpd-script-update @@ -0,0 +1,12 @@ +#! /usr/bin/bash + +if [ -z $(which git 2>/dev/null) ]; then + printf "\n$(tput setaf 1)-- We didn't find git! Is it installed? --$(tput sgr0)\n\n" + printf "On Ubuntu and similar distros, git can be installed with the following command:\n" + printf " $(tput setaf 2)sudo apt install git$(tput sgr0)\n\n" + printf "Please try again after installing git.\n\n" +else + cd ~/.local/gpd-win3 + git pull + cd - +fi