1
0
mirror of https://github.com/rancher/os-kernel.git synced 2025-09-12 12:59:14 +00:00

Fix script indent

This commit is contained in:
niusmallnan
2018-11-29 10:51:04 +08:00
parent 70f9897354
commit d8b99d9a29
2 changed files with 26 additions and 26 deletions

View File

@@ -9,14 +9,14 @@ fi
echo
echo "--- ${KERNEL_VERSION} Kernel prepared for RancherOS"
echo " ./dist/kernel/linux-${KERNEL_VERSION}-src.tgz"
echo " ./dist/kernel/extra-linux-${KERNEL_VERSION}-x86.tar.gz"
echo " ./dist/kernel/build-linux-${KERNEL_VERSION}-x86.tar.gz"
echo " ./dist/kernel/linux-${KERNEL_VERSION}-x86.tar.gz"
echo " ./dist/kernel/config"
echo " ./dist/kernel/modules-main.list"
echo " ./dist/kernel/modules-extra.list"
echo " ./release.log"
echo " ./dist/kernel/linux-${KERNEL_VERSION}-src.tgz"
echo " ./dist/kernel/extra-linux-${KERNEL_VERSION}-x86.tar.gz"
echo " ./dist/kernel/build-linux-${KERNEL_VERSION}-x86.tar.gz"
echo " ./dist/kernel/linux-${KERNEL_VERSION}-x86.tar.gz"
echo " ./dist/kernel/config"
echo " ./dist/kernel/modules-main.list"
echo " ./dist/kernel/modules-extra.list"
echo " ./release.log"
echo
echo "Images ready to push:"
cat dist/images

View File

@@ -6,28 +6,28 @@ cd $(dirname $0)/..
FIRMWARE=$(readlink -f scripts/firmware)
echo "FIRMWARE test: $FIRMWARE"
if [ ! -e linux-firmware ]; then
git clone git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
fi
if [ ! -e linux-firmware ]; then
git clone git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
fi
cd linux-firmware
cd linux-firmware
for i in $(<$FIRMWARE); do
if [ -e $i ]; then
glob=$(echo $i | sed 's/^\(.*\)-\([^-]*\)\.\([^.]*\)/\1-*.\3/')
#echo Found $i, trying $glob
latest=$(ls $glob | xargs -n1 -I{} -- git log -1 --format="%ai {}" {} | sort | tail -n1 | cut -d " " -f4)
if [ "$latest" != "$i" ]; then
echo "ERROR: Firmware $i in $FIRMWARE is not the latest - update to $latest"
STOP="1"
echo $latest >> new-firmware
else
echo $i >> new-firmware
fi
for i in $(<$FIRMWARE); do
if [ -e $i ]; then
glob=$(echo $i | sed 's/^\(.*\)-\([^-]*\)\.\([^.]*\)/\1-*.\3/')
#echo Found $i, trying $glob
latest=$(ls $glob | xargs -n1 -I{} -- git log -1 --format="%ai {}" {} | sort | tail -n1 | cut -d " " -f4)
if [ "$latest" != "$i" ]; then
echo "ERROR: Firmware $i in $FIRMWARE is not the latest - update to $latest"
STOP="1"
echo $latest >> new-firmware
else
echo WARNING: Firmware listed in $FIRMWARE Not found $i
echo $i >> new-firmware
fi
done
else
echo WARNING: Firmware listed in $FIRMWARE Not found $i
fi
done
if [ "$STOP" != "" ]; then
echo "Update the $FIRMWARE file:"