]> git.wh0rd.org Git - home.git/commitdiff
also check realpath
authorMike Frysinger <vapier@gentoo.org>
Tue, 14 Feb 2012 21:23:43 +0000 (16:23 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 28 Apr 2012 19:36:43 +0000 (15:36 -0400)
.bin/cros-cbuildbot

index 81aa94e365caba30f8dcbe4d8b42f67a6181c352..453e2734e4c71f0edb24efdd8169b49a363b1a39 100755 (executable)
@@ -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