From: Mike Frysinger Date: Tue, 14 Feb 2012 21:23:43 +0000 (-0500) Subject: also check realpath X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=420f8f8a58080e9f351da86316efbdf0b498e1bf;p=home.git also check realpath --- 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