check if kexec_url is a file

This commit is contained in:
Jörg Thalheim 2022-12-21 13:58:15 +01:00 committed by zimbatm
parent c5bf76c63e
commit 3edc7471f0
No known key found for this signature in database
GPG Key ID: 71BAF6D40C1D63D7

View File

@ -153,7 +153,7 @@ rm -rf /root/kexec
mkdir -p /root/kexec
SSH
if [[ -e "$kexec_url" ]]; then
if [[ -f "$kexec_url" ]]; then
ssh_ 'tar -C /root/kexec -xvzf-' < "$kexec_url"
else
ssh_ << SSH