diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2015-06-11 15:20:43 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2015-06-11 15:22:10 +0200 |
commit | a99f0b94d40269c6ae716b46c78ebc458234c30f (patch) | |
tree | 73ff77d542e88a185e514d3ced90f6fe4947856c /scripts | |
parent | 0f43c449de4a6b769d5b49720c48bc57716c1b8b (diff) | |
download | ptxdist-a99f0b94d40269c6ae716b46c78ebc458234c30f.tar.gz ptxdist-a99f0b94d40269c6ae716b46c78ebc458234c30f.tar.xz |
ptxd_make_world_extract.sh: don't remove pkg_extract_dir too early, it might point to builddir
This patch fixes:
eeb8ec75531b ptxd_make_world_extract: remove pkg_extract_dir before creating it
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/ptxd_make_world_extract.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/ptxd_make_world_extract.sh b/scripts/lib/ptxd_make_world_extract.sh index 12dfbb6cb..86fd40b42 100644 --- a/scripts/lib/ptxd_make_world_extract.sh +++ b/scripts/lib/ptxd_make_world_extract.sh @@ -25,7 +25,6 @@ ptxd_make_world_extract() { fi pkg_extract_dir="${pkg_deprecated_extract_dir:-${pkg_extract_dir}}" - rm -rf "${pkg_extract_dir}" || return case "${pkg_url}" in lndir://*) @@ -59,6 +58,7 @@ ptxd_make_world_extract() { ;; esac + rm -rf "${pkg_extract_dir}" && mkdir -p "${pkg_extract_dir}" || return ptxd_make_serialize_take |