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
#!/bin/bash | |
# Every repository is contained in a subdirectory of the current one | |
repos=$(ls -d */) | |
FINAL_LOG_FILE=result_log.txt | |
rm $FINAL_LOG_FILE | |
touch $FINAL_LOG_FILE | |
for repo in ${repos[*]} |
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
#!/bin/bash | |
# Based on https://gist.github.com/johnjohndoe/5398030 | |
checkForAndroidDevice() { | |
NOT_PRESENT="List of devices attached" | |
ADB_FOUND=`adb devices | tail -2 | head -1 | cut -f 1 | sed 's/ *$//g'` | |
if [[ ${ADB_FOUND} == ${NOT_PRESENT} ]]; then | |
echo "Android device seems to be missing." |
NewerOlder