fix quoting
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=5
This commit is contained in:
parent
3f9aafed0e
commit
6a86f71ba6
6
tar_scm
6
tar_scm
@ -137,7 +137,7 @@ if [ "$MYSCM" == "svn" ]; then
|
||||
if [ -z "$VERSION" ]; then
|
||||
cd "$FILE"
|
||||
[ -n "$MYPREFIX" ] && MYPREFIX="$MYPREFIX.rev"
|
||||
VERSION=$MYPREFIX`LC_ALL=C svn info | sed -n 's,^Last Changed Rev: \(.*\),\1,p'`
|
||||
VERSION="$MYPREFIX"`LC_ALL=C svn info | sed -n 's,^Last Changed Rev: \(.*\),\1,p'`
|
||||
cd -
|
||||
fi
|
||||
elif [ "$MYSCM" == "git" ]; then
|
||||
@ -169,7 +169,7 @@ elif [ "$MYSCM" == "git" ]; then
|
||||
if [ -z "$VERSION" ]; then
|
||||
cd "$FILE"
|
||||
[ -n "$MYPREFIX" ] && MYPREFIX="$MYPREFIX."
|
||||
VERSION=$MYPREFIX`git show --pretty=%at | head -n 1`
|
||||
VERSION="$MYPREFIX"`git show --pretty=%at | head -n 1`
|
||||
cd -
|
||||
fi
|
||||
elif [ "$MYSCM" == "hg" ]; then
|
||||
@ -201,7 +201,7 @@ elif [ "$MYSCM" == "hg" ]; then
|
||||
if [ -z "$VERSION" ]; then
|
||||
cd "$FILE"
|
||||
[ -n "$MYPREFIX" ] && MYPREFIX="$MYPREFIX."
|
||||
VERSION=$MYPREFIX`hg tip | head -n 1 | sed -e 's/\s*//g' | awk -F':' '{ print $2 }'`
|
||||
VERSION="$MYPREFIX"`hg tip | head -n 1 | sed -e 's/\s*//g' | awk -F':' '{ print $2 }'`
|
||||
cd -
|
||||
fi
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user