Skip to content

Commit

Permalink
chore(scripts): remove unused gen-gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
workflow committed Jul 20, 2024
1 parent 8e01d83 commit dc2d9fc
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions lib/scripts.nix
Original file line number Diff line number Diff line change
@@ -1,30 +1,6 @@
{
pkgs,
nixpkgs-unstable,
}: let
{pkgs}: let
shebang = "#!${pkgs.bash}/bin/bash";
in {
gen-gitignore = ''
${shebang}
set -e
comma-sep() {
local IFS=","
echo "$*"
}
main() {
if [ $# -eq 0 ]; then
echo "No languages specified"
exit 1
fi
languages="$(comma-sep $@)"
${pkgs.wget}/bin/wget -O- "http://gitignore.io/api/$languages" 2> /dev/null
}
main "$@"
'';

dlfile = ''
${shebang}
# Provides the ability to download a file by dropping it into a window
Expand Down

0 comments on commit dc2d9fc

Please sign in to comment.