feat(scripts/git-clone-list): replace binary calls with nix pkgs
This commit is contained in:
parent
22dacc57db
commit
2c97bcc5bc
1 changed files with 2 additions and 2 deletions
|
|
@ -51,14 +51,14 @@ pkgs.writeShellScriptBin "git-clone-list" ''
|
||||||
else
|
else
|
||||||
REPOS+=("$line")
|
REPOS+=("$line")
|
||||||
fi
|
fi
|
||||||
done < <(xidel "https://github.com''${NOT_VISITED[0]}" --xpath $XPATH)
|
done < <(${pkgs.xidel}/bin/xidel "https://github.com''${NOT_VISITED[0]}" --xpath $XPATH)
|
||||||
done
|
done
|
||||||
|
|
||||||
IT=1
|
IT=1
|
||||||
|
|
||||||
for repo in "''${REPOS[@]}"; do
|
for repo in "''${REPOS[@]}"; do
|
||||||
echo -e "''${green}>>> [$IT/''${#REPOS[@]}] Cloning https://github.com$repo.git ...''${reset}"
|
echo -e "''${green}>>> [$IT/''${#REPOS[@]}] Cloning https://github.com$repo.git ...''${reset}"
|
||||||
git clone "https://github.com$repo.git" "''${repo:1}"
|
${pkgs.git}/bin/git clone "https://github.com$repo.git" "''${repo:1}"
|
||||||
IT=$((IT + 1))
|
IT=$((IT + 1))
|
||||||
done
|
done
|
||||||
''
|
''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue