diff --git a/scripts/iiab-diagnostics b/scripts/iiab-diagnostics index 9adb49fe9..43f770d58 100755 --- a/scripts/iiab-diagnostics +++ b/scripts/iiab-diagnostics @@ -38,15 +38,18 @@ function cat_file_raw() { # $1 = path/filename; $2 = # of lines, for tail tail -$2 $1 | iconv -t UTF-8//IGNORE >> $outfile fi echo >> $outfile + elif [ -h $1 ]; then + ls -l $1 >> $outfile + echo >> $outfile + echo "SYMLINK DOES NOT LEAD TO A REGULAR FILE!" >> $outfile + echo >> $outfile + elif [ -d $1 ]; then + ls -ld $1 >> $outfile + echo >> $outfile + echo "THIS IS A DIRECTORY NOT A FILE!" >> $outfile + echo >> $outfile else - if [ -d $1 ]; then - ls -ld $1 >> $outfile - echo >> $outfile - echo "THIS IS A DIRECTORY NOT A FILE!" >> $outfile - echo >> $outfile - else - echo "FILE DOES NOT EXIST: $1" >> $outfile - fi + echo "FILE DOES NOT EXIST: $1" >> $outfile fi }