Shell script, not javascript
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user