~ubuntu-branches/ubuntu/saucy/initramfs-tools-ubuntu-touch/saucy

« back to all changes in this revision

Viewing changes to scripts/touch

  • Committer: Package Import Robot
  • Author(s): Loïc Minier, Dmitrijs Ledkovs
  • Date: 2013-10-03 18:49:06 UTC
  • mfrom: (54.1.1 initramfs-tools-ubuntu-touch)
  • Revision ID: package-import@ubuntu.com-20131003184906-vh0ydqp8ayz8y0r3
[ Dmitrijs Ledkovs ]
Skip calling readlink with empty $part, when partition from in
partlist loop is not found, thus avoiding busybox help output printed
on the console.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
        # find the right partition
59
59
        for partname in $partlist; do
60
60
                part=$(find /dev -name $partname|tail -1)
 
61
                [ -z "$part" ] && continue
61
62
                path=$(readlink -f $part)
62
63
                [ -n "$path" ] && break
63
64
        done