mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Merge pull request #1009 from bcambl/fix_1004
replace 'git -C' with long version
This commit is contained in:
commit
8f402f5c77
1 changed files with 2 additions and 2 deletions
|
@ -135,8 +135,8 @@ fi
|
|||
is_repo() {
|
||||
# Use git to check if directory is currently under VCS, return the value
|
||||
local directory="${1}"
|
||||
git -C "${directory}" status --short &> /dev/null
|
||||
return
|
||||
curdir=$PWD; cd $directory; git status --short &> /dev/null; rc=$?; cd $curdir
|
||||
return $rc
|
||||
}
|
||||
|
||||
make_repo() {
|
||||
|
|
Loading…
Reference in a new issue