diff --git a/modules/misc/news/create-news-entry.sh b/modules/misc/news/create-news-entry.sh index 7becc0fc..10cc4e93 100755 --- a/modules/misc/news/create-news-entry.sh +++ b/modules/misc/news/create-news-entry.sh @@ -1,5 +1,5 @@ #!/usr/bin/env nix-shell -#! nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/72ac591e737060deab2b86d6952babd1f896d7c5.tar.gz -i bash -p coreutils +#! nix-shell -i bash -p coreutils DATE="$(date --iso-8601=second --universal)" YEAR="$(date --date="$DATE" +"%Y")" @@ -15,7 +15,7 @@ cd "$DIRNAME" || { exit 1 } -cat - << EOF > "$YEAR/$MONTH/$FILENAME_BASE.nix" +cat - <"$YEAR/$MONTH/$FILENAME_BASE.nix" { time = "$DATE"; condition = true;