summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_make_world_clean.sh
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2011-09-29 14:32:47 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2011-09-29 14:36:36 +0200
commit95ad6607ffbb3a6b4a49b7bc354ed7854b229bc2 (patch)
tree661b9385fa467d5f02673c3173fd5fa006e13757 /scripts/lib/ptxd_make_world_clean.sh
parent6503766eaa49cc823ba1dc2dccff0115270d0d1d (diff)
downloadptxdist-95ad6607ffbb3a6b4a49b7bc354ed7854b229bc2.tar.gz
ptxdist-95ad6607ffbb3a6b4a49b7bc354ed7854b229bc2.tar.xz
ptxd_make_world_clean: delete the source dir if it's a link
"-d" matches links pointing to a directory but fails when the link target has been removed. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/lib/ptxd_make_world_clean.sh')
-rw-r--r--scripts/lib/ptxd_make_world_clean.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/ptxd_make_world_clean.sh b/scripts/lib/ptxd_make_world_clean.sh
index 928be4c44..7633fe5cb 100644
--- a/scripts/lib/ptxd_make_world_clean.sh
+++ b/scripts/lib/ptxd_make_world_clean.sh
@@ -31,7 +31,7 @@ ptxd_make_world_clean() {
rm -f "${ptx_state_dir}/${pkg_label}".*
echo
fi
- if [ -d "${pkg_dir}" ]; then
+ if [ -d "${pkg_dir}" -o -L "${pkg_dir}" ]; then
echo "Deleting src dir:"
echo "${pkg_dir}"
rm -rf "${pkg_dir}"