commit afe8e3a10a70a8e0234318225fa9ca5d7ce6ff93 parent aaef4dee640738b9fd9a7a39a4ed76669023cb27 Author: JayVii <jayvii[AT]posteo[DOT]de> Date: Sat, 27 Apr 2024 15:45:50 +0200 Minor syntax fix; add option to create repo owner Diffstat:
M | bin/git_create_repo.sh | | | 8 | ++++++-- |
M | bin/git_update_repo_html.sh | | | 2 | +- |
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/bin/git_create_repo.sh b/bin/git_create_repo.sh @@ -4,7 +4,8 @@ # $2 - priv/pub # $3 - repo name # $4 - description -# $5 - prot + domain: https://git.example.com +# $5 - owner/maintainer +# $6 - prot + domain: https://git.example.com # Create Folders mkdir -p "${1}/${2}/${3}/" @@ -22,8 +23,11 @@ echo "ref: refs/heads/main" > HEAD # Add description echo "$4" > description +# Add owner +echo "$5" > owner + # Add Clone URL -printf "${5}/${2}/${3}.git" > "${1}/${2}/${3}.git/url" +printf "${6}/${2}/${3}.git" > "${1}/${2}/${3}.git/url" # Add Hooks PUH_FILE="${1}/${2}/${3}.git/hooks/post-update" diff --git a/bin/git_update_repo_html.sh b/bin/git_update_repo_html.sh @@ -9,7 +9,7 @@ cd "${1}/${2}/${3}" # build HTML stagit "${1}/${2}/${3}.git" -mkdir -p "${1}/${2}/${3}/files" +mkdir -p "${1}/${2}/${3}/file" if [ -z $(find "${1}/${2}/${3}/file/" -type f -name "README*.html") ]; then # use log.html as index