mirror of
https://github.com/nix-community/nixos-anywhere.git
synced 2024-09-11 16:45:28 +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
|
mkdir -p /root/kexec
|
||||||
SSH
|
SSH
|
||||||
|
|
||||||
if [[ -e "$kexec_url" ]]; then
|
if [[ -f "$kexec_url" ]]; then
|
||||||
ssh_ 'tar -C /root/kexec -xvzf-' < "$kexec_url"
|
ssh_ 'tar -C /root/kexec -xvzf-' < "$kexec_url"
|
||||||
else
|
else
|
||||||
ssh_ << SSH
|
ssh_ << SSH
|
||||||
|
Loading…
Reference in New Issue
Block a user