diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-09-29 14:32:47 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-09-29 14:36:36 +0200 |
commit | 95ad6607ffbb3a6b4a49b7bc354ed7854b229bc2 (patch) | |
tree | 661b9385fa467d5f02673c3173fd5fa006e13757 /scripts/lib/ptxd_make_world_clean.sh | |
parent | 6503766eaa49cc823ba1dc2dccff0115270d0d1d (diff) | |
download | ptxdist-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.sh | 2 |
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}" |