From b654a68370a9f85db9e898521bd2925e62f578d7 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 15 Apr 2016 18:20:20 +0300 Subject: [PATCH] List repositories with "Unnamed" description and edit their descriptions --- edit-description | 5 +++++ ls-no-description | 4 ++++ 2 files changed, 9 insertions(+) create mode 100755 edit-description create mode 100755 ls-no-description diff --git a/edit-description b/edit-description new file mode 100755 index 0000000..547b248 --- /dev/null +++ b/edit-description @@ -0,0 +1,5 @@ +#! /bin/sh + +exec "`dirname \"$0\"`"/do-all \ + 'test "`cat $g/description`" = "Unnamed repository; edit this file '"'"description"'"' to name the repository." && + "${VISUAL:-${EDITOR:-vi}}" "$g"/description < /dev/tty' diff --git a/ls-no-description b/ls-no-description new file mode 100755 index 0000000..0966ffb --- /dev/null +++ b/ls-no-description @@ -0,0 +1,4 @@ +#! /bin/sh + +exec "`dirname \"$0\"`"/do-all \ + 'test "`cat $g/description`" = "Unnamed repository; edit this file '"'"description"'"' to name the repository." && echo "$d"' -- 2.39.2