Compare commits

...
2 Commits
Author SHA1 Message Date
me 713ae2dc49 lint, piped code has been working fine, move to be a warning. 2026-10-02 08:19:55 -07:00
me 3e5837bde2 android, add pipefails and see what it does. 2026-10-02 08:19:05 -07:00
2 changed files with 5 additions and 0 deletions

No files matched your search

+1
View File
@@ -16,3 +16,4 @@ warn_list:
- yaml[comments]
- risky-file-permissions
- name[missing]
- risky-shell-pipe
@@ -257,6 +257,7 @@
# These are safe to run multiple times, and uses the new `latest` version.
- name: Workstation | Linux | Software | Android | Install | Required Modules
shell: |
set -o pipefail
if [[ {{ android_sdkmanager2_list }} | grep -v 'unknown' | grep -q '{{ item }}' == 1 ]]; then
yes | {{ android_sdkmanager2_install }} '{{ item }}'
@@ -277,6 +278,7 @@
# Add more versions for testing across all the important platforms.
- name: Workstation | Linux | Software | Android | Install | Additional Modules
shell: |
set -o pipefail
if [[ {{ android_sdkmanager2_list }} | grep -v 'unknown' | grep -q '{{ item }}' == 1 ]]; then
yes | {{ android_sdkmanager2_install }} '{{ item }}'
@@ -298,6 +300,7 @@
# Remove extra downloads if system is not meant for full amount of testing.
- name: Workstation | Linux | Software | Android | Uninstall | Additional Modules
shell: |
set -o pipefail
if [[ {{ android_sdkmanager2_list }} | grep -q '{{ item }}' == 0 ]]; then
yes | {{ android_sdkmanager2_remove }} '{{ item }}'
@@ -319,6 +322,7 @@
# Remove any versions which used to be part of this script and no longer used.
- name: Workstation | Linux | Software | Android | Uninstall | Unused Modules
shell: |
set -o pipefail
if [[ {{ android_sdkmanager2_list }} | grep -q '{{ item }}' == 0 ]]; then
yes | {{ android_sdkmanager2_remove }} '{{ item }}'