From a48f47b65118a12f9c40b899d8b20ee93da55a83 Mon Sep 17 00:00:00 2001 From: Raymond Toy <toy.raymond@gmail.com> Date: Sat, 27 Oct 2012 09:06:18 -0700 Subject: [PATCH] Oops. expr should not have a "^" character in the regexp. (Sparc complains about this.) --- bin/load-world.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/load-world.sh b/bin/load-world.sh index 1ca377957..8b8c2ebee 100755 --- a/bin/load-world.sh +++ b/bin/load-world.sh @@ -16,11 +16,11 @@ GIT_HASH="`(cd src; git describe --dirty 2>/dev/null)`" # If the git hash looks like a snapshot tag or release, don't add the date. VERSION="`date '+%Y-%m-%d %H:%M:%S'`${GIT_HASH:+ $GIT_HASH}" -if expr "X${GIT_HASH}" : '^Xsnapshot-[0-9][0-9][0-9][0-9]-[01][0-9]' > /dev/null; then +if expr "X${GIT_HASH}" : 'Xsnapshot-[0-9][0-9][0-9][0-9]-[01][0-9]' > /dev/null; then VERSION="${GIT_HASH}" fi -if expr "X${GIT_HASH}" : '^X[0-9][0-9][a-f]' > /dev/null; then +if expr "X${GIT_HASH}" : 'X[0-9][0-9][a-f]' > /dev/null; then VERSION="${GIT_HASH}" fi echo $VERSION -- GitLab