简体   繁体   中英

Distillery Release doesn't find "release_ctl" in custom command

I've created a custom command for my Distillery Release by following the instructions in the README , but the script I've created cannot seem to find release_ctl . I'm using Distillery 2.1.1

For example, the following script...

#!/usr/bin/env sh

release_ctl --mfa "Elixir.IO.puts/1" --argv -- "$@"

...exits with an exit code of 1 . To make it even simpler...

#!/usr/bin/env sh

which release_ctl

...also exits w/ an exit code of 1 .

Any ideas?

This was a simple brainfart. I was missing eval . I should have been using...

#!/usr/bin/env sh

release_ctl eval --mfa "Elixir.IO.puts/1" --argv -- "$@"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM