card-helpers: Add hint for tired users running non matching card-write scripts

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
(cherry picked from commit 715ae745b6)
This commit is contained in:
Andreas Müller
2021-05-04 22:30:01 +02:00
parent 91e5d6c313
commit 90e296a3f7

View File

@@ -104,7 +104,13 @@ SelectDeployedFile() {
if [ -z "$_TMPDIR" ]; then
ErrorOut "Bitbake environment variable TMPDIR not found!"
fi
for FilePath in `find ${_TMPDIR}/deploy/images/${Machine} $FindString | sort` ; do
DeployPath=${_TMPDIR}/deploy/images/${Machine}
if [ ! -e ${DeployPath} ]; then
echo "${style_yellow}${style_bold}DeployPath: ${DeployPath}${style_normal}"
ErrorOut "Deploy path for ${Machine} not found! Wrong script started?"
fi
for FilePath in `find ${DeployPath} $FindString | sort` ; do
iCount=`expr $iCount + 1`
RootFileNameArr[${iCount}]="$FilePath"
FileSize=`du -Dh "$FilePath" | cut -f1`