소스 검색

Produce a sensible output from warnings.sh if readlink is not available

teor 8 년 전
부모
커밋
fda220c48f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tools/warnings.sh

+ 1 - 1
tools/warnings.sh

@@ -63,7 +63,7 @@ show_warnings() {
     fi
     if [ "$CHUTNEY_WARNINGS_IGNORE_EXPECTED" = true -a \
         -e "$IGNORE_FILE" ]; then
-        PERMANENT_DIR=`readlink -n "$1"`
+        PERMANENT_DIR=`readlink -n "$1" || echo "$1"`
         $ECHO_A "${GREEN}Detail: chutney/tools/warnings.sh $PERMANENT_DIR${NC}"
     fi
     # Display the warnings, after filtering and counting occurrences