mirror of
https://gitlab.com/amrron/setup-scripts.git
synced 2026-10-17 01:54:00 -04:00
13
This commit is contained in:
+13
-12
@@ -131,19 +131,20 @@ function check_repo_version() {
|
|||||||
|
|
||||||
cd $DIR && git remote set-url origin https://gitlab.com/amrron/setup-scripts.git/
|
cd $DIR && git remote set-url origin https://gitlab.com/amrron/setup-scripts.git/
|
||||||
|
|
||||||
GITSTATUS="$(git fetch --dry-run)"
|
GITSTATUS=$(git fetch --dry-run)
|
||||||
|
echo ${GITSTATUS}
|
||||||
|
|
||||||
if [[ "${GITSTATUS}" != '' ]]; then
|
#if [[ "${GITSTATUS}" != '' ]]; then
|
||||||
echo "${GITSTATUS}"
|
# echo "${GITSTATUS}"
|
||||||
echo
|
# echo
|
||||||
echo
|
# echo
|
||||||
echo "Your repo is out of date. Run the command 'git pull' in the setup-scripts \n
|
# 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
|
# directory in order to pull the most recent updates and fixes for the script and then \n
|
||||||
re-run the script."
|
# re-run the script."
|
||||||
else
|
#else
|
||||||
echo "Repository is up to date. Continuing with script"
|
# echo "Repository is up to date. Continuing with script"
|
||||||
sleep 3
|
# sleep 3
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user