-
-
Save oliverspryn/e4f4fc055def312274c2cf2d14278817 to your computer and use it in GitHub Desktop.
| #!/bin/bash | |
| # Example Definitions, for Mac Setups | |
| destination="$HOME/android/" | |
| toolsDownloadUrl=$(curl https://developer.android.com/studio | grep -o "https:\/\/dl.google.com\/android\/repository\/commandlinetools\-mac\-[0-9]*_latest\.zip") | |
| # Download and extract the contents | |
| curl --location -o android.zip $toolsDownloadUrl | |
| unzip -q android.zip -d ./android-temp | |
| mkdir -p "$destination/cmdline-tools/latest" | |
| mv ./android-temp/tools/* "$destination/cmdline-tools/latest" | |
| rm -rf ./android-temp | |
| rm android.zip |
goodddddddd
Good
خوی
#!/bin/bash
Example Definitions, for Mac Setups
destination="$HOME/android/"
toolsDownloadUrl=$(curl https://developer.android.com/studio | grep -o "https://dl.google.com/android/repository/commandlinetools-mac-[0-9]*_latest.zip")
Download and extract the contents
curl --location -o android.zip $toolsDownloadUrl
unzip -q android.zip -d ./android-temp
mkdir -p "$destination/cmdline-tools/latest"
mv ./android-temp/tools/* "$destination/cmdline-tools/latest"
rm -rf ./android-temp
rm android.zip
#!/bin/bash
Example Definitions, for Mac Setups
destination="$HOME/android/"
toolsDownloadUrl=$(curl https://developer.android.com/studio | grep -o "https://dl.google.com/android/repository/commandlinetools-mac-[0-9]*_latest.zip")
Download and extract the contents
curl --location -o android.zip $toolsDownloadUrl
unzip -q android.zip -d ./android-temp
mkdir -p "$destination/cmdline-tools/latest"
mv ./android-temp/tools/* "$destination/cmdline-tools/latest"
rm -rf ./android-temp
rm android.zip
gitup is good