From 4cc53909c57d773fc7676d28940419f01235e9bf Mon Sep 17 00:00:00 2001 From: JunsuChoi Date: Tue, 2 Sep 2025 11:41:31 +0900 Subject: [PATCH] Modify conditions to support new versions's rootstraps The rootstraps paths are different for versions 6.0, 6.5, 7.0, and 8.0 and 9.0. so modify if condition to use for newer versions as well. --- scripts/copy_rootstrap.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/copy_rootstrap.sh b/scripts/copy_rootstrap.sh index aad49d3..87f745d 100755 --- a/scripts/copy_rootstrap.sh +++ b/scripts/copy_rootstrap.sh @@ -23,16 +23,16 @@ if [[ -z $TIZEN_SDK ]]; then fi fi -if [ "$version" = "8.0" ] || [ "$version" = "9.0" ]; then - rootstrap=$TIZEN_SDK/platforms/tizen-$version/tizen/rootstraps/tizen-$version-device.core -else +if [ "$version" = "6.0" ] || [ "$version" = "6.5" ] || [ "$version" = "7.0" ]; then rootstrap=$TIZEN_SDK/platforms/tizen-$version/iot-headed/rootstraps/iot-headed-$version-device.core +else + rootstrap=$TIZEN_SDK/platforms/tizen-$version/tizen/rootstraps/tizen-$version-device.core fi if [ ! -d $rootstrap ]; then - if [ "$version" = "8.0" ] || [ "$version" = "9.0" ]; then - echo "Rootstrap not installed: Tizen-$version-NativeAppDevelopment-CLI" - else + if [ "$version" = "6.0" ] || [ "$version" = "6.5" ] || [ "$version" = "7.0" ]; then echo "Rootstrap not installed: IOT-Headed-$version-NativeAppDevelopment-CLI" + else + echo "Rootstrap not installed: Tizen-$version-NativeAppDevelopment-CLI" fi exit 1 fi