瀏覽代碼

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