2018-12-02 19:58:29 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
response=$(git diff-index HEAD -- . ':!asm/libraries/' ':!package-lock.json' ':!vendor/')
|
2019-02-17 15:08:10 +00:00
|
|
|
if [[ "$response" != "" ]]; then
|
|
|
|
if [[ "$1" == "sort-tag" ]]; then
|
2018-12-02 19:58:29 +00:00
|
|
|
echo "0000000"
|
|
|
|
fi
|
2019-02-17 15:08:10 +00:00
|
|
|
if [[ "$1" == "name" ]]; then
|
2018-12-02 19:58:29 +00:00
|
|
|
echo "custom build"
|
|
|
|
fi
|
2019-02-17 15:08:10 +00:00
|
|
|
if [[ "$1" == "file-name" ]]; then
|
2018-12-02 19:58:29 +00:00
|
|
|
echo "custom"
|
|
|
|
fi
|
|
|
|
exit 1
|
|
|
|
else
|
2019-02-17 15:08:10 +00:00
|
|
|
if [[ "$1" == "sort-tag" ]]; then
|
2020-04-02 15:40:09 +00:00
|
|
|
git rev-parse --short HEAD
|
2018-12-02 19:58:29 +00:00
|
|
|
fi
|
2019-02-17 15:08:10 +00:00
|
|
|
if [[ "$1" == "name" ]]; then
|
2020-04-02 15:40:09 +00:00
|
|
|
git rev-parse --short HEAD
|
2018-12-02 19:58:29 +00:00
|
|
|
fi
|
2019-02-17 15:08:10 +00:00
|
|
|
if [[ "$1" == "file-name" ]]; then
|
2020-04-02 15:40:09 +00:00
|
|
|
git rev-parse --short HEAD
|
2018-12-02 19:58:29 +00:00
|
|
|
fi
|
|
|
|
exit 0
|
|
|
|
fi
|