Browse Source

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

teor 7 years ago
parent
commit
fda220c48f
1 changed files with 1 additions and 1 deletions
  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