Skip to content

Commit

Permalink
Fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
whoan committed Nov 7, 2019
1 parent fd64ec4 commit d077c25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ __snip__get_snippet_fq_name() {
fi

local base_url
base_url=$(grep -Po "^(?<=base_url=).+" "$config_file")
base_url=$(grep -Po "(?<=^base_url=).+" "$config_file")
if [ -z "$base_url" ]; then
echo "Could not find 'base_url' setting in $config_file" >&2
return 1
Expand Down

0 comments on commit d077c25

Please sign in to comment.