dotnetcore.sh 481 B

1234567891011121314151617
  1. #!/bin/bash
  2. RETCODE=$(fw_exists ${IROOT}/dotnetcore.installed)
  3. [ ! "$RETCODE" == 0 ] || { \
  4. source $IROOT/dotnetcore.installed
  5. dotnet --info
  6. return 0; }
  7. sudo apt-get install unzip libunwind8 -y
  8. fw_get -O https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0-preview2/scripts/obtain/dotnet-install.sh
  9. chmod +x $IROOT/dotnet-install.sh
  10. $IROOT/dotnet-install.sh
  11. echo "PATH=$HOME/.dotnet:$PATH" > $IROOT/dotnetcore.installed
  12. source $IROOT/dotnetcore.installed
  13. dotnet --info