mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
Removed some of the &> /dev/null
This commit is contained in:
parent
0276c72fe2
commit
b020010f0d
1 changed files with 4 additions and 7 deletions
|
@ -40,22 +40,19 @@ make_repo() {
|
||||||
local remoteRepo="${2}"
|
local remoteRepo="${2}"
|
||||||
local directory="${1}"
|
local directory="${1}"
|
||||||
|
|
||||||
(prep_repo "${directory}" && git clone -q --depth 1 "${remoteRepo}" "${directory}" > /dev/null)
|
(prep_repo "${directory}" && git clone -q --depth 1 "${remoteRepo}" "${directory}")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
update_repo() {
|
update_repo() {
|
||||||
local directory="${1}"
|
local directory="${1}"
|
||||||
local retVal=0
|
|
||||||
# Pull the latest commits
|
# Pull the latest commits
|
||||||
|
|
||||||
# Stash all files not tracked for later retrieval
|
# Stash all files not tracked for later retrieval
|
||||||
git -C "${directory}" stash --all --quiet &> /dev/null || ${retVal}=1
|
git -C "${directory}" stash --all --quiet
|
||||||
# Force a clean working directory for cloning
|
# Force a clean working directory for cloning
|
||||||
git -C "${directory}" clean --force -d &> /dev/null || ${retVal}=1
|
git -C "${directory}" clean --force -d
|
||||||
# Fetch latest changes and apply
|
# Fetch latest changes and apply
|
||||||
git -C "${directory}" pull --quiet &> /dev/null || ${retVal}=1
|
git -C "${directory}" pull --quiet
|
||||||
return ${retVal}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getGitFiles() {
|
getGitFiles() {
|
||||||
|
|
Loading…
Reference in a new issue