From 420f8f8a58080e9f351da86316efbdf0b498e1bf Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 14 Feb 2012 16:23:43 -0500 Subject: [PATCH] also check realpath --- .bin/cros-cbuildbot | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.bin/cros-cbuildbot b/.bin/cros-cbuildbot index 81aa94e..453e273 100755 --- a/.bin/cros-cbuildbot +++ b/.bin/cros-cbuildbot @@ -17,6 +17,11 @@ if mount | grep -qs $d ; then echo "mounts found in $d" exit 1 fi +rd=$(readlink $d) +if mount | grep -qs $rd ; then + echo "mounts found in $rd" + exit 1 +fi if [[ $1 == "--noclean" ]] ; then shift @@ -33,6 +38,7 @@ else trybot_archive ) sudo rm -rf "${clean[@]}" + sudo find "${d}"/sdks -mtime +3 -delete popd >/dev/null fi -- 2.39.5