Skip to content

Commit

Permalink
Merge branch 'TinCanTech-improve-prog_dir'
Browse files Browse the repository at this point in the history
Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Aug 18, 2022
2 parents 5e64934 + dc501cd commit a9cf058
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion easyrsa3/easyrsa
Original file line number Diff line number Diff line change
Expand Up @@ -3734,7 +3734,11 @@ vars_setup() {
#prog_file2="$(which -- "$prog_file" 2>/dev/null)" && prog_file="$prog_file2"
#prog_file2="$(readlink -f "$prog_file" 2>/dev/null)" && prog_file="$prog_file2"
prog_dir="${prog_file%/*}"
if [ "$prog_dir" = . ]; then prog_in_pwd=1; else unset -v prog_in_pwd; fi
if [ "$prog_dir" = . ] || [ "$prog_dir" = "$PWD" ]; then
prog_in_pwd=1
else
unset -v prog_in_pwd
fi

# Program dir vars - This location is least wanted.
prog_vars="${prog_dir}/vars"
Expand Down

0 comments on commit a9cf058

Please sign in to comment.