commit:     61206a8b1876ead2583191976a8d104f5f54ddac
Author:     Guilherme Amadio <amadio <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 19 14:11:51 2021 +0000
Commit:     Guilherme Amadio <amadio <AT> gentoo <DOT> org>
CommitDate: Fri Nov 19 16:27:29 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61206a8b

sys-cluster/rdma-code: fix bashism in srpd.init

 * QA Notice: shell script appears to use non-POSIX feature(s):
 *    possible bashism in /etc/init.d/srpd line 10 (should be '.', not 
'source'):
 *    [ -f ${rdma_config} ] && source ${rdma_config}

Signed-off-by: Guilherme Amadio <amadio <AT> gentoo.org>

 sys-cluster/rdma-core/files/srpd.init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-cluster/rdma-core/files/srpd.init 
b/sys-cluster/rdma-core/files/srpd.init
index 07f5ec2d29a7..ac6db2ffad9b 100644
--- a/sys-cluster/rdma-core/files/srpd.init
+++ b/sys-cluster/rdma-core/files/srpd.init
@@ -7,7 +7,7 @@ pidfile="/run/${SVCNAME}.pid"
 start_stop_daemon_args="-b -m"
 
 rdma_config="/etc/infiniband/openib.conf"
-[ -f ${rdma_config} ] && source ${rdma_config}
+[ -f ${rdma_config} ] && . ${rdma_config}
 
 [ ${SRP_DEFAULT_TL_RETRY_COUNT} ] && command_args="-l 
${SRP_DEFAULT_TL_RETRY_COUNT}"
 

Reply via email to