Commit 3d2f1a72 by WU Jun

keep source tarball if '--keep' or 'tar xf' fails

parent d0912e4f
...@@ -241,8 +241,13 @@ fetch_tarball() { ...@@ -241,8 +241,13 @@ fetch_tarball() {
download_tarball "$package_url" "$package_filename" "$checksum" download_tarball "$package_url" "$package_filename" "$checksum"
} }
{ tar xzvf "$package_filename" { if tar xzvf "$package_filename"; then
rm -f "$package_filename" if [ -z "$KEEP_BUILD_PATH" ]; then
rm -f "$package_filename"
else
true
fi
fi
} >&4 2>&1 } >&4 2>&1
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment