Skip to content

Commit

Permalink
Revert "fix: Use dotnet workload install --sdk-version instead global…
Browse files Browse the repository at this point in the history
….json in scripts."

This reverts commit abaa909.
  • Loading branch information
sung-su committed Oct 29, 2023
1 parent 48f34da commit 7ad0caa
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion workload/scripts/workload-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,21 @@ function install_tizenworkload() {
fi

# Install workload packs.
$DOTNET_INSTALL_DIR/dotnet workload install tizen --sdk-version $DOTNET_VERSION --skip-manifest-update
if [ -f global.json ]; then
CACHE_GLOBAL_JSON="true"
mv global.json global.json.bak
else
CACHE_GLOBAL_JSON="false"
fi
dotnet new globaljson --sdk-version $DOTNET_VERSION
$DOTNET_INSTALL_DIR/dotnet workload install tizen --skip-manifest-update

# Clean-up
rm -fr $TMPDIR
rm global.json
if [[ "$CACHE_GLOBAL_JSON" == "true" ]]; then
mv global.json.bak global.json
fi

echo "Done installing Tizen workload $MANIFEST_VERSION"
echo ""
Expand Down

0 comments on commit 7ad0caa

Please sign in to comment.