From: Jo-Philipp Wich Date: Thu, 18 Jul 2019 13:02:11 +0000 (+0200) Subject: scripts: cleanup.sh: skip directory symlinks X-Git-Tag: v1~74 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=464e303ad32682a557b43ea76200ca27d769ab73;p=buildbot.git scripts: cleanup.sh: skip directory symlinks Signed-off-by: Jo-Philipp Wich --- diff --git a/scripts/cleanup.sh b/scripts/cleanup.sh index dc47529..87c0847 100755 --- a/scripts/cleanup.sh +++ b/scripts/cleanup.sh @@ -66,7 +66,7 @@ if [ "$current_mode" = full ]; then build_dir="$(readlink -f "$build_dir")" - if [ -z "$build_dir" ] || [ ! -d "$build_dir/build" ]; then + if [ -z "$build_dir" ] || [ -L "$build_dir" ] || [ ! -d "$build_dir/build" ]; then continue fi