feat(scripts/git-clone-list): replace binary calls with nix pkgs

This commit is contained in:
Jacob Bachmann 2024-01-22 15:27:21 +01:00
parent 22dacc57db
commit 2c97bcc5bc
Signed by: bchmnn
GPG key ID: 732A612DAD28067D

View file

@ -51,14 +51,14 @@ pkgs.writeShellScriptBin "git-clone-list" ''
else
REPOS+=("$line")
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
IT=1
for repo in "''${REPOS[@]}"; do
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))
done
''