fix tar test

This commit is contained in:
lassulus 2022-11-12 11:47:17 +01:00
parent ede67c8d6f
commit 31a2d3fd99

View File

@ -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-