Changeset f5b3c024 in rtems


Ignore:
Timestamp:
Nov 12, 2017, 2:39:53 PM (2 years ago)
Author:
Martin Erik Werner <martinerikwerner@…>
Branches:
master
Children:
cb40687
Parents:
e6df806
git-author:
Martin Erik Werner <martinerikwerner@…> (11/12/17 14:39:53)
git-committer:
Chris Johns <chrisj@…> (11/12/17 21:13:16)
Message:

Fix bashism in vc-key.sh

Change "==" to "=", since "==" for comparison is not available in POSIX
sh.

Signed-off-by: Martin Erik Werner <martinerikwerner@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/vc-key.sh

    re6df806 rf5b3c024  
    1616  if test -n ${git}; then
    1717   git rev-parse --git-dir > /dev/null 2>&1
    18    if test $? == 0; then
     18   if test $? = 0; then
    1919    git status > /dev/null 2>&1
    2020    if git diff-index --quiet HEAD --; then
     
    2525    vc_ident="$(git rev-parse --verify HEAD)${modified}"
    2626    if test $# -ge 1; then
    27      if test "${vc_ident}" == "$1"; then
     27     if test "${vc_ident}" = "$1"; then
    2828      vc_ident="matches"
    2929     fi
Note: See TracChangeset for help on using the changeset viewer.