[PATCH lkp-tests] bin/lkp-setup-rootfs: refactor chmod_root_ssh()

20 Jan
2021
20 Jan
'21
3:17 p.m.
Add blank line after return cmd. Signed-off-by: Xu Xijian <hdxuxijian@163.com> --- bin/lkp-setup-rootfs | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/lkp-setup-rootfs b/bin/lkp-setup-rootfs index cca1b53be..2c48521f7 100755 --- a/bin/lkp-setup-rootfs +++ b/bin/lkp-setup-rootfs @@ -247,6 +247,7 @@ chmod_root_ssh() { [ -d "/root/.ssh" ] || return [ -f "/root/.ssh/id_rsa" ] || return + chmod 700 /root/.ssh/ chmod 600 /root/.ssh/id_rsa } -- 2.23.0
1499
Age (days ago)
1499
Last active (days ago)
0 comments
1 participants
participants (1)
-
Xu Xijian