mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-23 21:30:17 +00:00
replace 'git -C' with long version
The -C argument was introduced in git 1.8.4. CentOS 7.3 at the time of this commit provides v1.8.3.1. see: https://git.kaarsemaker.net/git/commit/44e1e4d67d5148c245db362cc48c3cc6c2ec82ca/ Fixes #1004
This commit is contained in:
parent
c48e6c91f5
commit
c9c28cb59a
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ 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
|
||||
(cd ${directory} && git status --short) &> /dev/null
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue