aboutsummaryrefslogtreecommitdiff
path: root/wiki
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-09-20 22:06:57 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-09-20 22:07:20 +0200
commitf8eb04d9f2106aacfd98cb2b5f2d6c0870cce7d3 (patch)
tree3ce0be59803ff9fd6980218cd94f5b357bdb5e16 /wiki
parentfre 16 sep 2022 12:57:09 CEST (diff)
parenttis 20 sep 2022 18:04:47 CEST (diff)
downloadwiki-public-f8eb04d9f2106aacfd98cb2b5f2d6c0870cce7d3.tar.gz
wiki-public-f8eb04d9f2106aacfd98cb2b5f2d6c0870cce7d3.tar.xz
tis 20 sep 2022 22:07:23 CEST
Diffstat (limited to 'wiki')
-rwxr-xr-xwiki8
1 files changed, 5 insertions, 3 deletions
diff --git a/wiki b/wiki
index 9ce12f7..c89228d 100755
--- a/wiki
+++ b/wiki
@@ -8,6 +8,8 @@ WIKI_LIST=$(ls $WIKIROOT | grep -v html)
wiki_list=""
+alias git='git -c color.status=always'
+
#
# Adds all files to git, and commits with either the arguments as
# message, or with the current time as the message.
@@ -62,7 +64,7 @@ function wiki_do {
echo "-- $wiki --"
;;
*)
- eval "git $@"
+ eval "git -c color.status=always $@"
;;
esac
}
@@ -120,8 +122,8 @@ fi
# Run given command for all wikis
for wiki in ${wiki_list:-$WIKI_LIST}; do
- echo "== $wiki =="
- wiki_do $wiki $@ &
+ wiki_do $wiki $@ | sed "s/^/$wiki /" &
done
+
wait