Skip to content

Instantly share code, notes, and snippets.

@brenorb
Created January 8, 2019 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brenorb/9d54a2fb5e41a6989c2d638accf57beb to your computer and use it in GitHub Desktop.
Save brenorb/9d54a2fb5e41a6989c2d638accf57beb to your computer and use it in GitHub Desktop.
Shell script to update code in a double click.
#!/bin/sh
#Updates codes
#Author: Breno Brito
#Updated in 13/04/2018
export dir=$PWD
echo Updating website
echo
cd $dir/website
git pull
git submodule update
echo
echo [End]
echo
#End
cd $dir
read -p "Press [Enter] key to close..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment