mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 09:50:15 +01:00
16 lines
276 B
Bash
Executable File
16 lines
276 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ -n "$GITHUB_HEAD_REF" ]; then
|
|
echo \"$GITHUB_HEAD_REF\"
|
|
exit
|
|
fi
|
|
|
|
|
|
BRANCH1=`git log -n 1 --pretty=%d HEAD | awk '{print $2}' | sed 's/origin\///' | sed 's/)//'`
|
|
if [ "$BRANCH1" = '->' ]
|
|
then
|
|
BRANCH1=`git rev-parse --abbrev-ref HEAD`
|
|
fi
|
|
|
|
echo \"$BRANCH1\"
|