Retrieve local repos on repair (#1481)

* Retrieve local repos on repair

* Change conditional to check for repair
* Change wording of Update/Reconfigure message
* Fixed indenting

* Perform "git reset --hard" on reconfigure
This commit is contained in:
WaLLy3K 2017-05-22 06:47:26 +10:00 committed by DL6ER
parent c655e6ea73
commit 2ef87ad110

View file

@ -1181,7 +1181,8 @@ update_dialogs() {
clone_or_update_repos() {
if [[ "${reconfigure}" == true ]]; then
echo "::: --reconfigure passed to install script. Not downloading/updating local repos"
echo "::: --reconfigure passed to install script. Resetting changes to local repos"
git reset --hard
else
# Get Git files for Core and Admin
getGitFiles ${PI_HOLE_LOCAL_REPO} ${piholeGitUrl} || \