Merge "Ignore basename failures"

This commit is contained in:
Jenkins 2013-10-18 13:02:46 +00:00 committed by Gerrit Code Review
commit a6e55b8507

View File

@ -87,9 +87,9 @@ RAMDISK=
if [ -f $WORK_DIR/etc/redhat-release ]; then
# Prioritize PAE if present
KERNEL=$(basename `ls -1rv $BOOTDIR/vmlinuz* | grep PAE | grep -v debug | head -1`)
KERNEL=$(basename `ls -1rv $BOOTDIR/vmlinuz* | grep PAE | grep -v debug | head -1` || /bin/true)
if [ ! $KERNEL ]; then
KERNEL=$(basename `ls -1rv $BOOTDIR/vmlinuz* | grep -v debug | head -1`)
KERNEL=$(basename `ls -1rv $BOOTDIR/vmlinuz* | grep -v debug | head -1` || /bin/true)
if [ ! $KERNEL ]; then
echo "No suitable kernel found."
exit 1