Kaynağa Gözat

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

teor 8 yıl önce
ebeveyn
işleme
fda220c48f
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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