mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-03 12:40:56 +00:00
Shell script, not javascript
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
parent
15db1ffdd5
commit
e647efd471
@ -23,10 +23,10 @@ is_repo() {
|
||||
# Use git to check if directory is currently under VCS, return the value
|
||||
local directory="${1}"
|
||||
|
||||
curdir=$PWD;
|
||||
cd $directory;
|
||||
git status --short &> /dev/null;
|
||||
rc=$?;
|
||||
curdir=$PWD
|
||||
cd $directory
|
||||
git status --short &> /dev/null
|
||||
rc=$?
|
||||
cd $curdir
|
||||
return $rc
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user