Permalink
Browse files

Don't leave a trailing . on bash_safe strings

Thanks @notwa :)
  • Loading branch information...
1 parent 7cb559f commit ecd9db37c014b761a883b5b1b3894c171e1837f0 @jneen committed May 23, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/util.sh
View
@@ -113,7 +113,7 @@ db_safe() {
# escape ' with '\''. sorry everyone.
bash_safe() {
- local str="${!1}."
+ local str="${!1}"
# escape ' with (literally) '\'' - sorry everyone
local escaped_quote="'\\''"
export "$1"="'${str//\'/$escaped_quote}'"

0 comments on commit ecd9db3

Please sign in to comment.