Install fnctl in systems directories

This commit is contained in:
Carlos C
2016-10-24 09:58:43 -07:00
parent 3778c0e213
commit 81adbe66f8

View File

@@ -63,14 +63,14 @@ url='https://github.com/iron-io/functions/releases/download'
# perform some very rudimentary platform detection
case "$(uname)" in
Linux)
$sh_c "$curl fnctl $url/$release/fnctl_linux"
$sh_c "chmod +x fnctl"
$sh_c "$curl /usr/local/bin/fnctl $url/$release/fnctl_linux"
$sh_c "chmod +x /usr/local/bin/fnctl"
fnctl --version
exit 0
;;
Darwin)
$sh_c "$curl fnctl $url/$release/fnctl_mac"
$sh_c "chmod +x fnctl"
$sh_c "$curl /usr/local/bin/fnctl $url/$release/fnctl_mac"
$sh_c "chmod +x /usr/local/bin/fnctl"
fnctl --version
exit 0
;;