]> oss.titaniummirror.com Git - repo_shell.git/blobdiff - scripts/gitcreate
Fixes for when /etc/repo_shell.conf is not present
[repo_shell.git] / scripts / gitcreate
index feef68bb06eed03b3d21c53f4e0d38c35ac0b9e4..c19839f35844137716b9f6f1d0274468f41cf7c8 100755 (executable)
@@ -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"