mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
git-srv-admin.sh: Allow non-existing $pdir
Non-existing projects directories should not break the build, so just silently allow that to happen. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
50fc9201a4
commit
d890969c82
1 changed files with 1 additions and 1 deletions
|
|
@ -95,6 +95,7 @@ create_repo()
|
|||
|
||||
list_repos()
|
||||
{
|
||||
[ -d $pdir ] || return 0
|
||||
cd $pdir || return 1
|
||||
ls */HEAD | sed 's%/HEAD%%' 2>/dev/null
|
||||
return $?
|
||||
|
|
@ -124,7 +125,6 @@ while getopts jhu:F: flag; do
|
|||
usage 1;;
|
||||
esac
|
||||
done
|
||||
|
||||
shift $(($OPTIND - 1))
|
||||
|
||||
if [ "$user" ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue