Skip to content
Snippets Groups Projects
Commit d38b4d4b authored by Chris Croome's avatar Chris Croome
Browse files

User check added

parent 9d4e73ab
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
if [[ "${USER}" != "{{ item }}" ]]; then
echo "This script should be run as {{ item }}, please sudo first"
echo "sudo -u {{ item }} -s /bin/bash"
echo "${0}"
exit
fi
cd ~/sites
GIT_PULL=$(git pull | grep -v "up-to-date")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment