1
0
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:
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
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
}