summaryrefslogtreecommitdiffstats
path: root/source/d/icecream/icecream.sh
blob: 5e0afd5737015a9d198ec652c83bf8158f7bc1eb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
# Only add the icecream directory to the PATH if we see that icecc-scheduler
# and/or iceccd are running on this machine:

if /usr/bin/pgrep --ns $$ -f "^/usr/sbin/icecc-scheduler" > /dev/null ; then
  export PATH=/usr/libexec/icecc/bin:$PATH
elif /usr/bin/pgrep --ns $$ -f "^/usr/sbin/iceccd" > /dev/null ; then
  export PATH=/usr/libexec/icecc/bin:$PATH
fi