Skip to content

Instantly share code, notes, and snippets.

View danybony's full-sized avatar

Daniele Bonaldo danybony

View GitHub Profile
@danybony
danybony / multigource.sh
Last active August 29, 2015 14:07
Multi-project Gource
#!/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[*]}
#!/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."