Skip to content

Instantly share code, notes, and snippets.

@max-mapper
Created June 1, 2014 22:10
Show Gist options
  • Save max-mapper/abbb32b9cc722b9d5fcd to your computer and use it in GitHub Desktop.
Save max-mapper/abbb32b9cc722b9d5fcd to your computer and use it in GitHub Desktop.
offline-issues bulk shell script

bulk offline issue cloner:

first, in a new folder create a folder for each user you want, and a sub folder inside each users folder for each of their repos that you want to clone the issues from

e.g.

mkdir issues
cd issues
mkdir -p maxogden/dat
mkdir -p maxogden/taco
mkdir -p jlord/offline-issues

then save update.sh in issues/ and run it via ./update.sh. it should clone all issues into the correct folders

#!/bin/bash
for i in * ; do
if [ -d "$i" ]; then
for j in "$i"/* ; do
if [ -d "$j" ]; then
cd "$j"
CMD="offline-issues $j"
echo $CMD
$CMD
cd ../..
fi
done
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment