-
-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid
sudo chown -R
on ${ANDROID_HOME}
on Linux
This seems to take several minutes, a decent fraction of the overall time in my simple use. Instead of changing the ownership of `${ANDROID_HOME}` instead arrange to run individual commands under `sudo` when needed. Note that `$PATH` is not preserved by `sudo` so we must use the full path to the `sdkmanager`. Another wrinkle is the cmdline-tools installation, since `tc.extractZip` and `io.mv` do not include sudo-ish functionality. Instead precreate the target directory with the ownership to allow the unpack as the current user.
- Loading branch information
Showing
1 changed file
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters