scripts/release.sh: making clear if builing a production or development version (#4304)
Co-authored-by: Stefan Benten <mail@stefan-benten.de>
This commit is contained in:
parent
d94d8d1775
commit
af3edf2b78
@ -9,9 +9,11 @@ echo $TIMESTAMP
|
||||
|
||||
echo -n "Git commit: "
|
||||
if [[ "$(git diff --stat)" != '' ]] || [[ -n "$(git status -s)" ]]; then
|
||||
echo "Changes detected, building a development version"
|
||||
COMMIT=$(git rev-parse HEAD)-dirty
|
||||
RELEASE=false
|
||||
else
|
||||
echo "Building a release version"
|
||||
COMMIT=$(git rev-parse HEAD)
|
||||
RELEASE=true
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user