replace subshell with command chain

This commit is contained in:
bcambl 2016-12-22 04:32:42 -06:00
parent c9c28cb59a
commit cbf84c1840

View file

@ -135,8 +135,8 @@ fi
is_repo() {
# Use git to check if directory is currently under VCS, return the value
local directory="${1}"
(cd ${directory} && git status --short) &> /dev/null
return
curdir=$PWD; cd $directory; git status --short &> /dev/null; rc=$?; cd $curdir
return $rc
}
make_repo() {