[chef] Re: Re: knife shebang


Chronological Thread 
  • From: "joe.nuspl" < >
  • To:
  • Subject: [chef] Re: Re: knife shebang
  • Date: Wed, 1 May 2013 13:53:09 -0700

Maybe it is because I'm on CentOS 5.x but this does not work.  It was trying 
to find an executable in $PATH called  "knife exec" (with the embedded space).

So I created a wrapper script called "knife-exec"

        #! /bin/bash
        exec /usr/bin/env knife exec $*

and then did:

        #! /usr/bin/env knife-exec

in the scripts.

Maybe I'll enhance knife to check if ARGV[0] was of the form /full/path or 
./local it would be treated as if "exec" was specified.

        Joe



  • [chef] Re: Re: knife shebang, joe.nuspl, 05/01/2013

Archive powered by MHonArc 2.6.16.

§