nb_repos_status() {
shell_help "List repos git status" "$@" && return
local status
- local pwd=`pwd`
+# NB 26.01.18 local pwd=`pwd`
local i
local ret=0
for i in $(nb_repos); do
- cd "$i" || continue
+# NB 26.01.18 cd "$i" || continue
- status=$(git status --short "$i"|sed 's/^/ /')
+ status=$(cd "$i" && git status --short "$i"|sed 's/^/ /') || continue
[ -n "$status" ] && status=$'\n'"$status" && ret=1
printf "%s %s\n" "$i" "$status"
- #status=$(git status --short "$i"|sed "s,^,$i$(printf '\t'),")
- #[ -n "$status" ] && ret=1 && echo "$status"
-
done
- cd "$pwd"
+# NB 26.01.18 cd "$pwd"
return $ret
}
-# NB 13.12.16
-# Search repos patterns
+#
+# etc/repos.conf
+#
+# Find repos
+#
+
/.nb-install
+/{root,var/root}/.nb-install
/{opt,usr,usr/local,etc,home,home/www,Users}/*/.nb-install