replace subshell with command chain

pull/1009/head
bcambl 8 years ago
parent c9c28cb59a
commit cbf84c1840

@ -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() {

Loading…
Cancel
Save