cvs-admin.sh: Add support for $HOME/cvs-list.txt

If $HOME/cvs-list.txt exists, it is used as whitelist for the
list-projects command

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2024-04-30 09:50:54 +00:00
commit d63b40082e

View file

@ -26,6 +26,7 @@ cmd_list_projects()
test -x $p || continue
test -r $p || continue
p=${p##./}
test -f $HOME/cvs-list.txt && grep -q "^$p$" $HOME/cvs-list.txt || continue
proj="$proj $p"
done
[ "$proj" ] && echo $proj