Created
April 10, 2019 16:38
-
-
Save philipesteiff/4c7472ee15deee12b0010715995988ab to your computer and use it in GitHub Desktop.
Get feature modules name
This file contains hidden or 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
#!/usr/bin/env bash | |
get_module_names() { | |
array=( $(cat $(pwd)/settings.gradle | grep -o 'feature:[A-z_-]\+') ) | |
for el in ${array[*]}; do | |
echo $el | grep -o "[A-z_-]\+\$" | |
done | |
} | |
get_module_names |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment