File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ if [[ -z "$REPO" ]]; then
99 exit 1
1010fi
1111
12- WIKI_DIR=" /tmp/ wiki-init-$$ "
12+ WIKI_DIR=" " $HYPATIA_TMPDIR / wiki-init-" $$ "
1313mkdir -p " $WIKI_DIR "
1414cd " $WIKI_DIR " || exit 1
1515
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ REPO_DIR="${HOME}/repos"
33mkdir -p " $REPO_DIR "
44
55echo " Fetching repo list..."
6- gh repo list --limit 500 --json name,sshUrl --jq ' .[] | .name + "|" + .sshUrl' > /tmp/ repos.txt
6+ gh repo list --limit 500 --json name,sshUrl --jq ' .[] | .name + "|" + .sshUrl' > " $HYPATIA_TMPDIR / repos.txt"
77
8- TOTAL=$( wc -l < /tmp/ repos.txt)
8+ TOTAL=$( wc -l < " $HYPATIA_TMPDIR / repos.txt" )
99echo " Found $TOTAL repos"
1010
1111sync_repo () {
@@ -28,7 +28,7 @@ sync_repo() {
2828export -f sync_repo
2929export REPO_DIR
3030
31- cat /tmp/ repos.txt | xargs -P 8 -I {} bash -c ' sync_repo "$@"' _ {}
31+ cat " $HYPATIA_TMPDIR / repos.txt" | xargs -P 8 -I {} bash -c ' sync_repo "$@"' _ {}
3232
3333echo " "
3434echo " Done! Repos in $REPO_DIR :"
You can’t perform that action at this time.
0 commit comments