]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commit
utils: fix ssh_exec function 2117/head
authorIonut Balutoiu <ibalutoiu@cloudbasesolutions.com>
Fri, 17 Feb 2023 11:38:43 +0000 (13:38 +0200)
committerIonut Balutoiu <ibalutoiu@cloudbasesolutions.com>
Fri, 17 Feb 2023 11:38:43 +0000 (13:38 +0200)
commit0d40a19fdd694d97b3a6437904359083fa104f7d
tree4175ed9236871e76253e1b92d448a5be635ab6a7
parent0e1ad32435378ff6034cb53080cead8fd2aaf1bb
utils: fix ssh_exec function

We need to use `return` inside the function to properly return the
exit code of the function. Using `exit` will abruptly exit the
entire script, which is not what we want.

Signed-off-by: Ionut Balutoiu <ibalutoiu@cloudbasesolutions.com>
scripts/build_utils.sh