~xnox/ubuntu/saucy/initramfs-tools-ubuntu-touch/emulator

« back to all changes in this revision

Viewing changes to scripts/touch

  • Committer: Dmitrijs Ledkovs
  • Date: 2013-10-01 12:04:53 UTC
  • Revision ID: dmitrijs.ledkovs@canonical.com-20131001120453-11ziplak2vum8fl0
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