mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-05 13: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
|
# Use git to check if directory is currently under VCS, return the value
|
||||||
local directory="${1}"
|
local directory="${1}"
|
||||||
|
|
||||||
curdir=$PWD;
|
curdir=$PWD
|
||||||
cd $directory;
|
cd $directory
|
||||||
git status --short &> /dev/null;
|
git status --short &> /dev/null
|
||||||
rc=$?;
|
rc=$?
|
||||||
cd $curdir
|
cd $curdir
|
||||||
return $rc
|
return $rc
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user