Run shellcheck on direnvrc during checkPhase

This commit is contained in:
Bryan Bennett 2024-08-11 12:18:57 -04:00
parent 35dfac9604
commit 3f5f7a602d
No known key found for this signature in database
GPG key ID: EE149E4215408DE9
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,5 @@
#!/usr/bin/env bash
# The below code is taken largely from nix-direnv.
# nix-direnv's license is replicated below:
#
@ -38,7 +40,8 @@ use_flake_env() {
local old_tempdir=${TEMPDIR:-__UNSET__}
local old_xdg_data_dirs=${XDG_DATA_DIRS:-}
local ld=$(direnv_layout_dir)
local ld
ld=$(direnv_layout_dir)
export direnv
local flake_reference="${1:-"."}"