From fa6df64f69303bba3c1dceee44a85f4346dfcc5e Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sat, 12 Feb 2022 18:16:29 +0100 Subject: fix: make programs silent --- bin/stagit-new-repo | 5 +---- hooks/post-receive | 2 -- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/bin/stagit-new-repo b/bin/stagit-new-repo index bcd0b2a..e7cba72 100755 --- a/bin/stagit-new-repo +++ b/bin/stagit-new-repo @@ -1,6 +1,6 @@ #!/bin/sh -# This script creates a new repository and index it with stagit. +# This script creates a initializes a new git repository and index it with stagit. while getopts ":r:d:o:u:h" o; do case "${o}" in h) printf "Arguement for creating a new git repository:\\n -r: Repository name\\n -d: Short description of the project\\n -o: Name of the owner\\n -u: URI for cloning\\n -h: Show this message\\n" && exit 1 ;; @@ -17,7 +17,6 @@ www="/var/www/git" [ -d "$srv/$repo" ] && echo "$repo already exists!" && exit 1 -echo "Initializing git repository..." git init --bare "$srv/$repo.git" cp "/usr/local/share/post-receive" "$srv/$repo.git/hooks/post-receive" chmod u+x "$srv/$repo.git/hooks/post-receive" @@ -27,9 +26,7 @@ echo "$desc" > "$srv/$repo.git/description" chown -R git:git "$srv/$repo.git" ln -svf "$srv/$repo.git" "$home/" -echo "Creating a static page directory..." [ -d "$www/$repo" ] && echo "$www/$repo already exists!" && exit 1 mkdir "$www/$repo" chown -R git:git "$www/$repo" - /usr/local/bin/stagit-gen-index diff --git a/hooks/post-receive b/hooks/post-receive index 58d831e..77ffc88 100755 --- a/hooks/post-receive +++ b/hooks/post-receive @@ -12,10 +12,8 @@ dst="$www/$(basename "$name" '.git')" [ ! -d dst ] && mkdir -p "$dst" cd "$dst" || exit 1 -echo "[stagit] building $dst" stagit "$src" -echo "[stagit] linking $dst" ln -sf log.html index.html ln -sf ../style.css style.css ln -sf ../logo.png logo.png -- cgit v1.2.3-70-g09d2