mirror of
https://github.com/nix-community/nixos-anywhere.git
synced 2024-08-16 20:00:36 +03:00
fix tar test
This commit is contained in:
parent
ede67c8d6f
commit
31a2d3fd99
@ -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-
|
||||
|
Loading…
Reference in New Issue
Block a user