SDCARD-RAW-TOOLS: resolve path of debug tsv script

Debug script is inside an extra level 'debug' of folders.

Increase by one level the search to resolve the path.

Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
Change-Id: I2aaea6b63f7c30f8e8ae24b90ebc0c9d50c2c52c
This commit is contained in:
Antonio Borneo 2022-06-15 15:50:50 +02:00 committed by bernard PUEL
parent 105bb0e41b
commit 370681e971
1 changed files with 4 additions and 0 deletions

View File

@ -199,11 +199,15 @@ function get_last_image_path() {
elif [ -f "$FLASHLAYOUT_filename_path/../../$last_image" ];
then
FLASHLAYOUT_prefix_image_path="$FLASHLAYOUT_filename_path/../.."
elif [ -f "$FLASHLAYOUT_filename_path/../../../$last_image" ];
then
FLASHLAYOUT_prefix_image_path="$FLASHLAYOUT_filename_path/../../.."
else
echo "[ERROR]: do not found image associated to this FLash layout on the directory:"
echo "[ERROR]: $FLASHLAYOUT_filename_path"
echo "[ERROR]: or $FLASHLAYOUT_filename_path/.."
echo "[ERROR]: or $FLASHLAYOUT_filename_path/../.."
echo "[ERROR]: or $FLASHLAYOUT_filename_path/../../.."
echo ""
exit 0
fi