mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-06-10 09:52:12 +02:00
Use double quotes to prevent globbing and word splitting.
This commit is contained in:
parent
4e140dd334
commit
e972f911b0
|
@ -6,7 +6,7 @@ VERSION=
|
|||
if [ -s "$ROOT/../version.txt" ]; then
|
||||
VERSION=$(cat "$ROOT/../version.txt" | tr -d '[:space:]')
|
||||
fi
|
||||
if [ -z $VERSION ] && [ -d "$ROOT/../.git" ]; then
|
||||
if [ -z "$VERSION" ] && [ -d "$ROOT/../.git" ]; then
|
||||
TAG=$(git tag --points-at HEAD | sed 's/v//')
|
||||
if [ "$1" == "--tar" ]; then
|
||||
VERSION=$(git describe --dirty --tags --always | sed 's/debian\///g')
|
||||
|
@ -17,7 +17,7 @@ if [ -z $VERSION ] && [ -d "$ROOT/../.git" ]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
if [ -z $VERSION ]; then
|
||||
if [ -z "$VERSION" ]; then
|
||||
VERSION=unknown
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue