mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-24 13:50:17 +00:00
replace subshell with command chain
This commit is contained in:
parent
c9c28cb59a
commit
cbf84c1840
1 changed files with 2 additions and 2 deletions
|
@ -135,8 +135,8 @@ fi
|
||||||
is_repo() {
|
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}"
|
||||||
(cd ${directory} && git status --short) &> /dev/null
|
curdir=$PWD; cd $directory; git status --short &> /dev/null; rc=$?; cd $curdir
|
||||||
return
|
return $rc
|
||||||
}
|
}
|
||||||
|
|
||||||
make_repo() {
|
make_repo() {
|
||||||
|
|
Loading…
Reference in a new issue