~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/buildd/umount-chroot

  • Committer: Jeroen Vermeulen
  • Date: 2011-09-26 06:30:07 UTC
  • mto: This revision was merged to the branch mainline in revision 14049.
  • Revision ID: jeroen.vermeulen@canonical.com-20110926063007-1fb5eelnidpnra9a
Fix lots of lint in recently-changed files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
#
3
 
# Copyright 2009 Canonical Ltd.  This software is licensed under the
 
3
# Copyright 2009-2011 Canonical Ltd.  This software is licensed under the
4
4
# GNU Affero General Public License version 3 (see the file LICENSE).
5
5
 
6
6
# Buildd Slave tool to mount a chroot
26
26
# pass at umounting fails unless we reverse the list.  Leave the while
27
27
# loop in just to handle pathological cases, too.
28
28
COUNT=0
29
 
while $GREP "$HOME/build-$BUILDID/chroot-autobuild" /proc/mounts; do 
 
29
while $GREP "$HOME/build-$BUILDID/chroot-autobuild" /proc/mounts; do
30
30
    COUNT=$(($COUNT+1))
31
31
    if [ $COUNT -ge 20 ]; then
32
32
        echo "failed to umount $HOME/build-$BUILDID/chroot-autobuild"