diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2026-11-29 17:24:18 +0100 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2026-11-29 17:42:35 +0100 |
| commit | ce831333a24011d0692f6871047fe74eab9fab8c (patch) | |
| tree | 9bb971e2afe0a4b22c73274e8b8e8d05d014401d /config/services/git/shell-commands/repo/src/set_description_command.sh | |
| download | hermaphroditos-ce831333a24011d0692f6871047fe74eab9fab8c.tar.gz hermaphroditos-ce831333a24011d0692f6871047fe74eab9fab8c.tar.bz2 hermaphroditos-ce831333a24011d0692f6871047fe74eab9fab8c.tar.xz | |
initial commit
Diffstat (limited to 'config/services/git/shell-commands/repo/src/set_description_command.sh')
| -rw-r--r-- | config/services/git/shell-commands/repo/src/set_description_command.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/config/services/git/shell-commands/repo/src/set_description_command.sh b/config/services/git/shell-commands/repo/src/set_description_command.sh new file mode 100644 index 0000000..b6b40f0 --- /dev/null +++ b/config/services/git/shell-commands/repo/src/set_description_command.sh @@ -0,0 +1,14 @@ +repo=$(realpath "${args[repo]}") + +echo "$repo" +check-realpath "$repo" +check-git-repository "$repo" +echo "Old description:" +show-descr "$repo" +echo "New description:" +echo -n "| " +read descr +echo +echo "$descr" > "$repo"/description +show-repo "$repo" + |
