X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=scripts%2Fgitcreate;fp=scripts%2Fgitcreate;h=c19839f35844137716b9f6f1d0274468f41cf7c8;hb=c3f4f5e0a7a740354d38a44c4435dbf0790e81c4;hp=feef68bb06eed03b3d21c53f4e0d38c35ac0b9e4;hpb=96e2bba66e2c7abad51ed4d05bac24dbc99de637;p=repo_shell.git diff --git a/scripts/gitcreate b/scripts/gitcreate index feef68b..c19839f 100755 --- a/scripts/gitcreate +++ b/scripts/gitcreate @@ -1,9 +1,10 @@ #!/bin/sh # gitcreate is part of the repo_shell distribution. -eval $(sed -e 's| ||g' < /etc/repo_shell.conf) +eval $([ -f /etc/repo_shell.conf ] && sed -e 's| ||g' < /etc/repo_shell.conf) if [ -z "$owner" -o -z "$git_root" ]; then echo "$0: please configure /etc/repo_shell.conf" + exit 1 fi gitacls="$git_root/.gitacls"