mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-16 04:19:07 +00:00
replace 'git -C' with long version (see #1009)
This commit is contained in:
parent
ffd31d8330
commit
0276c72fe2
1 changed files with 2 additions and 2 deletions
4
advanced/Scripts/update.sh
Normal file → Executable file
4
advanced/Scripts/update.sh
Normal file → Executable file
|
@ -23,8 +23,8 @@ is_repo() {
|
||||||
# Use git to check if directory is currently under VCS, return the value
|
# Use git to check if directory is currently under VCS, return the value
|
||||||
local directory="${1}"
|
local directory="${1}"
|
||||||
|
|
||||||
git -C "${directory}" status --short &> /dev/null
|
curdir=$PWD; cd $directory; git status --short &> /dev/null; rc=$?; cd $curdir
|
||||||
return
|
return $rc
|
||||||
}
|
}
|
||||||
|
|
||||||
prep_repo() {
|
prep_repo() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue