nixos-config/packages/scripts/update-git.sh

6 lines
No EOL
142 B
Bash
Executable file

#!/usr/bin/env nix-shell
#!nix-shell -i bash -p nix-prefetch-git
URL=$1
WRITE_PATH=$2
nix-prefetch-git $3 $URL | grep -v "Git " > $WRITE_PATH