summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Bruhin <git@the-compiler.org>2013-08-09 21:18:26 +0200
committerFlorian Bruhin <git@the-compiler.org>2013-08-09 21:18:26 +0200
commit895d50392617e99c33f0be53e1477aa6be396446 (patch)
tree37931874667d377cc197e85c3a4acb9af5e47440
parent8ef9e0d0e179fb515bc672bf30879a473e883721 (diff)
downloadsshtunnel-895d50392617e99c33f0be53e1477aa6be396446.tar.gz
sshtunnel-895d50392617e99c33f0be53e1477aa6be396446.zip
Strip comment-chars correctly
-rwxr-xr-xsshtunnel2
1 files changed, 1 insertions, 1 deletions
diff --git a/sshtunnel b/sshtunnel
index 35a1dac..1817584 100755
--- a/sshtunnel
+++ b/sshtunnel
@@ -28,7 +28,7 @@ conf_section() {
unset secstart
while read line; do # No -r by intention
line="${line%%[;#]*}" # Strip inline comments
- line="${line#[\'\"]}" # Strip string-chars
+ line="${line/=[\'\"]/=}" # Strip string-chars
line="${line%[\'\"]}"
[[ -z "$line" ]] && continue
if [[ "$secstart" ]]; then