Test "$pathcomp/." so a symlink to a directory counts as an existing
authorroland <roland>
Mon, 25 Mar 1996 07:18:41 +0000 (07:18 +0000)
committerroland <roland>
Mon, 25 Mar 1996 07:18:41 +0000 (07:18 +0000)
directory.

mkinstalldirs

index cd1fe0a..b044a33 100755 (executable)
@@ -18,7 +18,8 @@ do
        -* ) pathcomp=./$pathcomp ;;
      esac
 
-     if test ! -d "$pathcomp"; then
+     # Test `DIR/.' so that we see a symlink to a directory as a directory.
+     if test ! -d "$pathcomp"/.; then
         echo "mkdir $pathcomp" 1>&2
         mkdir "$pathcomp" || errstatus=$?
      fi