This commit is contained in:
tangobravo14
2024-03-07 13:21:40 +00:00
parent 9fbd0f9278
commit 1e8d1b918b
+13 -12
View File
@@ -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
}