summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2018-01-04 11:25:05 +0100
committerMatthias Beyer <mail@beyermatthias.de>2018-01-04 11:26:13 +0100
commit806e706087f27463b58365832be1e442f2b1afa6 (patch)
treea82e730a47923cfbbcfe99c098c565e23f9a43f7 /scripts
parentdb33d46608afbe95538af331a7571efd0d0c5be9 (diff)
Prepend the skip-line to the first line
Diffstat (limited to 'scripts')
-rw-r--r--scripts/hooks/commit-msg.checkstyle.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/hooks/commit-msg.checkstyle.sh b/scripts/hooks/commit-msg.checkstyle.sh
index e1644f6d..0ba89e34 100644
--- a/scripts/hooks/commit-msg.checkstyle.sh
+++ b/scripts/hooks/commit-msg.checkstyle.sh
@@ -19,7 +19,7 @@ if grep -q -i -e "WIP" -e "work in progress" $1; then
read -p "You're about to add a WIP commit, do you want to run the CI? [y|n] " -n 1 -r < /dev/tty
echo
if echo $REPLY | grep -E '^[Nn]$' > /dev/null; then
- echo "[skip ci]" >> $1
+ sed -i '1,1s,.*,[ci skip] &,' $1
fi
fi