Ticket #2606: patch-DarwinPortsStartup

File patch-DarwinPortsStartup, 325 bytes (added by mww@…, 20 years ago)

check x-bit

Line 
1--- DarwinPortsStartup  Wed Oct  2 09:06:57 2002
2+++ ../../DarwinPortsStartup    Sun Jan 23 20:04:44 2005
3@@ -17,7 +17,9 @@
4        for prefix in ${prefixes}; do
5                rcdir="${prefix}/etc/rc.d/"
6                for file in `ls ${rcdir}/*.sh`; do
7-                       /bin/sh "${file}" $1
8+                       if [ -x ${file} ]; then
9+                               /bin/sh "${file}" $1
10+                       fi
11                done
12        done
13 }