u-boot-dey: safeguard rm operation in adapt_uboot_filenames to prevent build issues
This commit fixes the rm command in the adapt_uboot_filenames function to prevent build failures when the target artifact does not exist, ensuring the operation is safe in all cases. https://onedigi.atlassian.net/browse/DEL-9634 Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
This commit is contained in:
parent
11c34bcbdb
commit
d0dc8282f6
|
|
@ -145,7 +145,7 @@ adapt_uboot_filenames() {
|
||||||
if [ $j -eq $i ]
|
if [ $j -eq $i ]
|
||||||
then
|
then
|
||||||
cd ${DEPLOYDIR}
|
cd ${DEPLOYDIR}
|
||||||
rm -r ${UBOOT_BINARY}-${type}
|
rm -f ${UBOOT_BINARY}-${type}
|
||||||
ln -sf ${UBOOT_BINARYNAME}-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${UBOOT_BINARYNAME}-${type}.${UBOOT_SUFFIX}
|
ln -sf ${UBOOT_BINARYNAME}-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${UBOOT_BINARYNAME}-${type}.${UBOOT_SUFFIX}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue