added ANDROID ENV to shellrc
This commit is contained in:
4
dist/pacman.sh
vendored
4
dist/pacman.sh
vendored
@@ -73,6 +73,10 @@ else
|
||||
yes | su - "$BUILD_USER" -c "paru -S --noconfirm ${paru_packages[*]}"
|
||||
yes | su - "$BUILD_USER" -c "yes | sdkmanager --licenses"
|
||||
yes | su - "$BUILD_USER" -c "yes | sudo pacman -Syu --noconfirm gradle"
|
||||
# check if bashrc or zshrc contains sdkman initialization, if not add it
|
||||
SHELL_RC_CONTENT="$(echo dist/.shellrc)"
|
||||
echo "Checking shell rc for sdkman initialization..."
|
||||
yes | su - "$BUILD_USER" -c "if [[ -f ~/.bashrc ]]; then echo ${SHELL_RC_CONTENT} >> ~/.bashrc; fi else if [[ -f ~/.zshrc ]]; then echo ${SHELL_RC_CONTENT} >> ~/.zshrc; fi"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user