summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Davis <jrcd83@gmail.com>2012-05-25 18:54:20 +0200
committerJustin Davis <jrcd83@gmail.com>2012-05-25 18:54:20 +0200
commit4f14e248b35d4c9a845d511ad3af67cb3261db69 (patch)
tree41bcd44b7b87c5171043923d218222b275a65469
parent5232c0d07100d5fb0b3baff99ecb07f9a4436f4e (diff)
downloadgenpkg-4f14e248b35d4c9a845d511ad3af67cb3261db69.tar.gz
genpkg-4f14e248b35d4c9a845d511ad3af67cb3261db69.tar.xz
Fix typo in bashquote function.
-rwxr-xr-xbin/pbfields2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/pbfields b/bin/pbfields
index c5f815e..9102bca 100755
--- a/bin/pbfields
+++ b/bin/pbfields
@@ -118,7 +118,7 @@ function bashquote (val)
{
if(val ~ /[$'"`]/){
- gsub(/[$"`]/, "\\\\&", $2)
+ gsub(/[$"`]/, "\\\\&", val)
return sprintf("\"%s\"", val)
}
if(val ~ /[ <>]/) return sprintf("'%s'", val)