fixed typos

main
Linux User 2021-01-31 19:07:52 +01:00
parent f82acd5fb5
commit 220c6c5527
3 changed files with 5 additions and 5 deletions

View File

@ -16,7 +16,7 @@ ddclient:
gitolite: gitolite:
$(BUILD) $(BUILD)
gitolite-stagit: gitolite-pystagit:
$(BUILD) $(BUILD)
git-daemon: git-daemon:

View File

@ -2,17 +2,17 @@
set -e set -e
PYSTAGIT_BASE="${PYSTAGIT_BASE:-/var/lib/git/stagit}" PYSTAGIT_BASE="${PYSTAGIT_BASE:-/var/lib/git/pystagit}"
GL_REPO_BASE="${GL_REPO_BASE:-/var/lib/git/repositories}" GL_REPO_BASE="${GL_REPO_BASE:-/var/lib/git/repositories}"
mk_index () { mk_index () {
gitolite list-phy-repos | \ gitolite list-phy-repos | \
gitolite access % stagit R any | \ gitolite access % pystagit R any | \
awk \ awk \
-F'\t' \ -F'\t' \
-v d="${GL_REPO_BASE}" \ -v d="${GL_REPO_BASE}" \
'{if ($3 !~ "DENIED") print d"/"$1".git"}' | \ '{if ($3 !~ "DENIED") print d"/"$1".git"}' | \
xargs -r /usr/local/bin/stagit-index | \ xargs -r /usr/bin/pystagit-index | \
sed 's|\(<a href=".*\)/log.html\(">\)|\1\2|' > \ sed 's|\(<a href=".*\)/log.html\(">\)|\1\2|' > \
"${1}/index.html" "${1}/index.html"
} }

View File

@ -19,7 +19,7 @@ run_pystagit () {
fi fi
mkdir -p "${out_dir}" && \ mkdir -p "${out_dir}" && \
cd "${out_dir}" && \ cd "${out_dir}" && \
/usr/local/bin/pystagit "${repo_dir}" && \ /usr/bin/pystagit "${repo_dir}" && \
ln -sf files.html index.html ln -sf files.html index.html
} }