diff --git a/nixos-remote b/nixos-remote index 67a1934..27ebac6 100755 --- a/nixos-remote +++ b/nixos-remote @@ -91,10 +91,11 @@ fetch(){ exit 1 fi } -if command -v tar >/dev/null 2>&1; then +if ! command -v tar >/dev/null 2>&1; then echo "no tar command found, but required to unpack kexec tarball" >&2 exit 1 fi + rm -rf /root/kexec mkdir -p /root/kexec fetch "$kexec_url" | tar -C /root/kexec -xvzf-