13 lines
260 B
Bash
Executable file
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"
|