Fix spaces in git hook
This commit is contained in:
parent
608e0e1c97
commit
1b5b07c195
|
@ -25,16 +25,16 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
# Change these if you run your own service somewhere
|
# Change these if you run your own service somewhere
|
||||||
SERVER = "notifications.sparkleshare.org"
|
SERVER="notifications.sparkleshare.org"
|
||||||
PORT = "1986"
|
PORT="1986"
|
||||||
|
|
||||||
# Don't edit below this line
|
# Don't edit below this line
|
||||||
exec > /dev/null 2>&1
|
exec > /dev/null 2>&1
|
||||||
|
|
||||||
CHANNEL = $(git rev-list --reverse HEAD | head -n 1)
|
CHANNEL=$(git rev-list --reverse HEAD | head -n 1)
|
||||||
MESSAGE = $(git rev-list HEAD | head -n 1)
|
MESSAGE=$(git rev-list HEAD | head -n 1)
|
||||||
|
|
||||||
DATA = "announce ${CHANNEL} ${MESSAGE}"
|
DATA="announce ${CHANNEL} ${MESSAGE}"
|
||||||
echo "${DATA}\n" | socat - TCP-CONNECT:${SERVER}:${PORT} &
|
echo "${DATA}\n" | socat - TCP-CONNECT:${SERVER}:${PORT} &
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in a new issue