Skip to content

Commit

Permalink
bootstrap: name=val regex must be anchored
Browse files Browse the repository at this point in the history
  • Loading branch information
lightmare committed Aug 24, 2018
1 parent b4bce33 commit d0f7b40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bootstrap.sh
Expand Up @@ -137,7 +137,7 @@ function export_variables() {
local arg= ret=0
for arg
do
if [[ "$arg" =~ [[:alpha:]][_[:alnum:]]*= ]]
if [[ "$arg" =~ ^[[:alpha:]][_[:alnum:]]*= ]]
then
local -n var="${arg%%=*}"
export var="${arg#*=}"
Expand Down

0 comments on commit d0f7b40

Please sign in to comment.