mirror of
https://github.com/luxfi/safe-ios.git
synced 2026-10-30 15:19:20 +00:00
11 lines
227 B
Bash
Executable File
11 lines
227 B
Bash
Executable File
#!/bin/bash
|
|
|
|
TICKET=`git symbolic-ref HEAD | sed -E 's:.*\/([a-zA-Z]+-[0-9]+).*:\1:'`
|
|
|
|
test -z "$TICKET" && exit 0
|
|
head -1 "$1" | grep -q "$TICKET" && exit 0
|
|
|
|
echo -n "$TICKET " > "$1.msg"
|
|
cat "$1" >> "$1.msg"
|
|
mv "$1.msg" "$1"
|