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/
|
||||
|
||||
GITSTATUS="$(git fetch --dry-run)"
|
||||
GITSTATUS=$(git fetch --dry-run)
|
||||
echo ${GITSTATUS}
|
||||
|
||||
if [[ "${GITSTATUS}" != '' ]]; then
|
||||
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."
|
||||
else
|
||||
echo "Repository is up to date. Continuing with script"
|
||||
sleep 3
|
||||
fi
|
||||
#if [[ "${GITSTATUS}" != '' ]]; then
|
||||
# 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."
|
||||
#else
|
||||
# echo "Repository is up to date. Continuing with script"
|
||||
# sleep 3
|
||||
#fi
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user