mirror of
https://gitlab.com/amrron/setup-scripts.git
synced 2026-10-17 01:54:00 -04:00
5
This commit is contained in:
@@ -129,13 +129,19 @@ echo "${ERRCODE}" >> /tmp/failures
|
||||
|
||||
function check_repo_version() {
|
||||
|
||||
cd $DIR && git remote set-url origin https://gitlab.com/amrron/setup-scripts.git/
|
||||
|
||||
GITSTATUS=$(git fetch --dry-run 2>/dev/null)
|
||||
GITSTATUS=$(git fetch --dry-run &2>/dev/null)
|
||||
|
||||
if [[$GITSTATUS == '']]; then
|
||||
if [[ $GITSTATUS == '' ]]; then
|
||||
echo 'Your repo is up to date'
|
||||
else
|
||||
echo $GITSTATUS
|
||||
echo
|
||||
echo
|
||||
echo "Your repo is out of date. Run the command 'git pull' in the setup-scripts \n
|
||||
directory in order to pull the most recent updates and fixes for the script and then \n
|
||||
re-run the script."
|
||||
fi
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user