gitservconf/git-shell-commands/describe
2024-08-12 16:26:09 +02:00

13 lines
260 B
Bash
Executable file

#!/bin/bash
if [ "$#" -ne 1 ]; then
echo "Usage: describe <path_to_repository>"
exit 1
fi
echo "Enter description: "
read INPUT
REPO_PATH="/srv/git/$1"
cd "$REPO_PATH" && echo "$INPUT" > description
echo "Wrote '$INPUT' into $REPO_PATH/description"