mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
No need to cd $PWD
as it doesn't affect flow of caller script.
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
parent
74eb8c8622
commit
5004cf331a
1 changed files with 0 additions and 3 deletions
|
@ -222,14 +222,11 @@ getGitFiles() {
|
|||
|
||||
resetRepo() {
|
||||
local directory="${1}"
|
||||
local curdir
|
||||
|
||||
curdir="${PWD}"
|
||||
cd "${directory}" &> /dev/null || return 1
|
||||
echo -n "::: Resetting repo in ${1}..."
|
||||
git reset --hard &> /dev/null || return $?
|
||||
echo " done!"
|
||||
cd "${curdir}" &> /dev/null || return 1
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue