mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-12-08 01:51:09 +01:00
replace shebang by shellcheck directive
This commit is contained in:
parent
e7fce0da51
commit
ea7c07e783
1 changed files with 2 additions and 3 deletions
5
direnvrc
5
direnvrc
|
|
@ -1,5 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
# shellcheck shell=bash
|
||||||
|
|
||||||
|
|
||||||
use_nix() {
|
use_nix() {
|
||||||
local path
|
local path
|
||||||
|
|
@ -53,7 +52,7 @@ use_nix() {
|
||||||
log_status eval "$cache"
|
log_status eval "$cache"
|
||||||
read -r cache_content < "$cache"
|
read -r cache_content < "$cache"
|
||||||
eval "$cache_content"
|
eval "$cache_content"
|
||||||
export PATH=$PATH:$path_backup TERM=$term_backup
|
export PATH=$PATH:$path_backup TERM=$term_backup
|
||||||
if [[ -n ${tmp_backup+x} ]]; then
|
if [[ -n ${tmp_backup+x} ]]; then
|
||||||
export TMPDIR=${tmp_backup}
|
export TMPDIR=${tmp_backup}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue