Skip to content

Commit

Permalink
Expand ~ to ${HOME} in filename (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbode authored Apr 30, 2024
1 parent d5295a9 commit d746770
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ sops_env() {
LINES=0

while read -r filename; do
filename=${filename/#~/${HOME}}
if [[ ${filename} != /* ]] && [[ -n ${MISE_PROJECT_ROOT-} ]]; then
filename="${MISE_PROJECT_ROOT-}/${filename}"
fi
Expand Down

0 comments on commit d746770

Please sign in to comment.