fix(ssh-client): shellcheck for modules.d/95ssh-client

master
Harald Hoyer 2021-03-26 10:29:29 +01:00 committed by Harald Hoyer
parent 0c4b5cabcf
commit a15a7a1a34
2 changed files with 1 additions and 0 deletions

View File

View File

@ -49,6 +49,7 @@ inst_sshenv() {
# Copy customized UserKnowHostsFile
elif [[ $key == "UserKnownHostsFile" ]]; then
# Make sure that ~/foo will be copied as /root/foo in kdump's initramfs
# shellcheck disable=SC2088
if str_starts "$val" "~/"; then
val="/root/${val#"~/"}"
fi