1
0
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:
Dan Schaper 2016-12-24 11:24:20 -08:00
parent 15db1ffdd5
commit e647efd471
No known key found for this signature in database
GPG Key ID: 572E999E385B7BFC

View File

@ -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
} }