Skip to content

Commit

Permalink
Use export also in commented out variables.
Browse files Browse the repository at this point in the history
Place the export command also on configuration lines that are
commented out, so that the user can easily uncomment those lines and
get the variable globally scoped.

See #54
  • Loading branch information
fluca1978 committed Jun 20, 2022
1 parent 76645e8 commit 2a3412d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/pgenv
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# VERSION
#
PGENV_VERSION="1.3.0"
PGENV_VERSION="1.3.1"

# https://stackoverflow.com/a/19622569/79202
trap 'exit' ERR
Expand Down Expand Up @@ -629,7 +629,7 @@ pgenv_configuration_write_variable(){
if [ -z "$value" ]; then
echo -n "#" >> "$file"
fi
echo "${name}='${value}'" >> "$file"
echo "export ${name}='${value}'" >> "$file"
fi
echo >> "$file"
}
Expand Down

0 comments on commit 2a3412d

Please sign in to comment.