mirror of
https://github.com/nix-community/nixos-anywhere.git
synced 2024-08-16 20:00:36 +03:00
check if kexec_url is a file
This commit is contained in:
parent
c5bf76c63e
commit
3edc7471f0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user