view bin/chef @ 115:9c074aec60a6

Fix search for root folder. Must have been drunk when I wrote this originally. I hope I'm not drunk right now.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 27 Oct 2014 08:17:51 -0700
parents a212a3f2e3ee
children
line wrap: on
line source

#!/bin/sh

CHEF_DIR=`dirname $0`
if `hash readlink 2>&-`; then
    LINKED_EXE=`readlink $0`
    if [ -n "$LINKED_EXE" ]; then
        CHEF_DIR=`dirname $LINKED_EXE`
    fi
fi
python $CHEF_DIR/../chef.py $@