diff options
Diffstat (limited to 'source/d/icecream/icecream.sh')
-rw-r--r-- | source/d/icecream/icecream.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/d/icecream/icecream.sh b/source/d/icecream/icecream.sh new file mode 100644 index 00000000..5e0afd57 --- /dev/null +++ b/source/d/icecream/icecream.sh @@ -0,0 +1,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 + |