This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [update] base-files (2.2-1)


John Morrison <john.r.morrison@ntlworld.com> wrote:
> Last update (fingers crossed!) for a while.

Uploaded.

Would you also accept the following patch for your next release? It
elliminates an annoying warning when /etc/profile.d/ doesn't exist.

--- profile.default     2003-08-21 08:22:12.000000000 +0100
+++ profile     2003-08-21 08:23:34.000000000 +0100
@@ -47,0 +47,0 @@ fi

 # Run all of the profile.d scripts
 # Note that these are supplied by separate packages
-/bin/find /etc/profile.d/*.sh -type f | while read f; do
-  if [ -f "$f" ]; then
-    . "$f"
-  fi
-done
+if test -d /etc/profile.d; then
+  /bin/find /etc/profile.d/*.sh -type f | while read f; do
+    if [ -f "$f" ]; then
+      . "$f"
+    fi
+  done
+fi

 # Default to unix make mode
 MAKE_MODE=unix

Thanks,

-- Elfyn


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]