diff --git a/configure b/configure index 3912e2521..dc3d858b2 100755 --- a/configure +++ b/configure @@ -1074,8 +1074,11 @@ fi export GIT_DIR="${progdir}/.git" export GIT_WORK_TREE="${progdir}" -test -e "${GIT_DIR}" -work_from_git_repo=$? +if test -e "${GIT_DIR}"; then + work_from_git_repo=0 +else + work_from_git_repo=1 +fi # if we install from git repository, must have git to fetch current release number if [ $work_from_git_repo -eq 0 ]; then diff --git a/script/mt b/script/mt index 59aa92e22..90c5df633 100755 --- a/script/mt +++ b/script/mt @@ -246,9 +246,8 @@ if [ -t 1 ]; then fi # highlight failed tests -retreview=0 review_log -retreview+=$? +retreview=$? # testsuite ok but mtreview failed to run if [ $ret -eq 0 ] && [ $retreview -ne 0 ]; then