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:
parent
105bb0e41b
commit
370681e971
|
|
@ -199,11 +199,15 @@ function get_last_image_path() {
|
||||||
elif [ -f "$FLASHLAYOUT_filename_path/../../$last_image" ];
|
elif [ -f "$FLASHLAYOUT_filename_path/../../$last_image" ];
|
||||||
then
|
then
|
||||||
FLASHLAYOUT_prefix_image_path="$FLASHLAYOUT_filename_path/../.."
|
FLASHLAYOUT_prefix_image_path="$FLASHLAYOUT_filename_path/../.."
|
||||||
|
elif [ -f "$FLASHLAYOUT_filename_path/../../../$last_image" ];
|
||||||
|
then
|
||||||
|
FLASHLAYOUT_prefix_image_path="$FLASHLAYOUT_filename_path/../../.."
|
||||||
else
|
else
|
||||||
echo "[ERROR]: do not found image associated to this FLash layout on the directory:"
|
echo "[ERROR]: do not found image associated to this FLash layout on the directory:"
|
||||||
echo "[ERROR]: $FLASHLAYOUT_filename_path"
|
echo "[ERROR]: $FLASHLAYOUT_filename_path"
|
||||||
echo "[ERROR]: or $FLASHLAYOUT_filename_path/.."
|
echo "[ERROR]: or $FLASHLAYOUT_filename_path/.."
|
||||||
echo "[ERROR]: or $FLASHLAYOUT_filename_path/../.."
|
echo "[ERROR]: or $FLASHLAYOUT_filename_path/../.."
|
||||||
|
echo "[ERROR]: or $FLASHLAYOUT_filename_path/../../.."
|
||||||
echo ""
|
echo ""
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue