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

6 lines
142 B
Bash
Raw Normal View History

#!/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