소스 검색

Merge pull request #8685 from richardkchapman/git-check

HPCC-15559 Check if git is installed on eclccserver box

Reviewed-By: Michael Gardner <michael.gardner@lexisnexis.com>
Richard Chapman 9 년 전
부모
커밋
77b110d72b
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      ecl/eclccserver/vchooks/git.sh

+ 2 - 0
ecl/eclccserver/vchooks/git.sh

@@ -28,6 +28,8 @@
 
 originalDir=$PWD
 
+hash git 2>/dev/null || { echo >&2 "GIT: git command not found"; exit 4; }
+
 ## Some options can be overridden per workunit, and should accept 0 to mean false
 
 if [ -n "$WU_GIT_VERBOSE" ]; then GIT_VERBOSE=$WU_GIT_VERBOSE ; fi