summaryrefslogtreecommitdiffstats
path: root/hosts/jenkins/etc/pbuilder/rebuild-hooks/B01_cleanup
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/jenkins/etc/pbuilder/rebuild-hooks/B01_cleanup')
-rwxr-xr-xhosts/jenkins/etc/pbuilder/rebuild-hooks/B01_cleanup6
1 files changed, 4 insertions, 2 deletions
diff --git a/hosts/jenkins/etc/pbuilder/rebuild-hooks/B01_cleanup b/hosts/jenkins/etc/pbuilder/rebuild-hooks/B01_cleanup
index df37129c..f8c545ae 100755
--- a/hosts/jenkins/etc/pbuilder/rebuild-hooks/B01_cleanup
+++ b/hosts/jenkins/etc/pbuilder/rebuild-hooks/B01_cleanup
@@ -6,5 +6,7 @@ set -e
[ "$(readlink /proc/1/ns/uts)" = "$(readlink /proc/self/ns/uts)" ] && exit 0
# cease using disorderfs
-sudo -u pbuilder2 fusermount -u /tmp/buildd
-mv /tmp/disorderfs /tmp/buildd
+if [ -d /tmp/disorderfs ] ; then
+ sudo -u pbuilder2 fusermount -u /tmp/buildd
+ mv /tmp/disorderfs /tmp/buildd
+fi