diff options
Diffstat (limited to '')
-rw-r--r-- | build/latex/academia/init | 6 | ||||
-rw-r--r-- | build/latex/letter/init | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/build/latex/academia/init b/build/latex/academia/init index f8c8bb3..2c9c077 100644 --- a/build/latex/academia/init +++ b/build/latex/academia/init @@ -26,6 +26,10 @@ require() { exit 1 fi } +die() { + echo "$1" + exit 1 +} # Prompt the user for a specific variable. # ## Args: @@ -167,7 +171,7 @@ chmod +x update.sh [ -f ./watch.sh ] && chmod +x build.sh # Do the first run of reuse annotate -reuse="$(nix build nixpkgs#reuse --no-link --print-out-paths)" +reuse="$(nix build nixpkgs#reuse --no-link --print-out-paths)/bin/reuse" [ "$(echo "$reuse" | wc -l)" -ne 1 ] && die "Something is wrong with the nixpkgs#reuse derivation" git add . diff --git a/build/latex/letter/init b/build/latex/letter/init index f8c8bb3..2c9c077 100644 --- a/build/latex/letter/init +++ b/build/latex/letter/init @@ -26,6 +26,10 @@ require() { exit 1 fi } +die() { + echo "$1" + exit 1 +} # Prompt the user for a specific variable. # ## Args: @@ -167,7 +171,7 @@ chmod +x update.sh [ -f ./watch.sh ] && chmod +x build.sh # Do the first run of reuse annotate -reuse="$(nix build nixpkgs#reuse --no-link --print-out-paths)" +reuse="$(nix build nixpkgs#reuse --no-link --print-out-paths)/bin/reuse" [ "$(echo "$reuse" | wc -l)" -ne 1 ] && die "Something is wrong with the nixpkgs#reuse derivation" git add . |