From f522fb4f17114d48e2de5b60a9b34dea350e77cb Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 31 Oct 2026 11:01:59 +0200 Subject: feat!: Initial setup --- scripts/desc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 scripts/desc (limited to 'scripts/desc') diff --git a/scripts/desc b/scripts/desc new file mode 100755 index 0000000..ee7c13b --- /dev/null +++ b/scripts/desc @@ -0,0 +1,25 @@ +#!/bin/bash + +if [ -z "$1" ] +then + printf 'Repository : ' + read + set "$REPLY" +fi + +if [ ! -f "$1/HEAD" ] +then + echo 'Not a repository!' + exit 1 +fi + +if [ -z "$2" ] +then + printf 'Description: ' + read + set "$1" "$REPLY" +fi + +# Beware of https://stackoverflow.com/questions/53465980/how-to-keep-parameter-with-spaces-when-running-remote-script-file-with-ssh +cd "$1" && \ +git config set --file ./config gitweb.description "$2" -- cgit v1.3.1-23-gd82d