forked from Imagelibrary/rtems
Fix bashism in vc-key.sh
Change "==" to "=", since "==" for comparison is not available in POSIX sh. Signed-off-by: Martin Erik Werner <martinerikwerner@gmail.com>
This commit is contained in:
committed by
Chris Johns
parent
e6df806a3f
commit
f5b3c0244c
@@ -15,7 +15,7 @@ if test $# -ge 1; then
|
|||||||
cd $repo
|
cd $repo
|
||||||
if test -n ${git}; then
|
if test -n ${git}; then
|
||||||
git rev-parse --git-dir > /dev/null 2>&1
|
git rev-parse --git-dir > /dev/null 2>&1
|
||||||
if test $? == 0; then
|
if test $? = 0; then
|
||||||
git status > /dev/null 2>&1
|
git status > /dev/null 2>&1
|
||||||
if git diff-index --quiet HEAD --; then
|
if git diff-index --quiet HEAD --; then
|
||||||
modified=""
|
modified=""
|
||||||
@@ -24,7 +24,7 @@ if test $# -ge 1; then
|
|||||||
fi
|
fi
|
||||||
vc_ident="$(git rev-parse --verify HEAD)${modified}"
|
vc_ident="$(git rev-parse --verify HEAD)${modified}"
|
||||||
if test $# -ge 1; then
|
if test $# -ge 1; then
|
||||||
if test "${vc_ident}" == "$1"; then
|
if test "${vc_ident}" = "$1"; then
|
||||||
vc_ident="matches"
|
vc_ident="matches"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user