summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2017-02-06 03:03:57 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2017-03-25 15:00:29 -0400
commit1c452bb755e339273c18d9fafe7652efc90c3b8f (patch)
tree1468651d42dbc2efcad80e5f08d9a49776df1eb4
parent0f053be1227570121107da6c13bf440baef39b23 (diff)
downloaddevtools-lukeshu/to-upstream/editor-20170328.tar.xz
commitpkg: Adjust fancy quoting/escaping to not confuse Emacs.lukeshu/to-upstream/editor-20170328
It was confusing Emacs and screwing up the syntax highlighting and auto-indentation for the rest of the file.
-rw-r--r--commitpkg.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/commitpkg.in b/commitpkg.in
index 3b3246b..707a81c 100644
--- a/commitpkg.in
+++ b/commitpkg.in
@@ -47,7 +47,7 @@ done
for i in 'changelog' 'install'; do
while read -r file; do
# evaluate any bash variables used
- eval file=\"$(sed 's/^\(['\''"]\)\(.*\)\1$/\2/' <<< "$file")\"
+ eval file=\"$(sed "s/^\(['\"]\)\(.*\)\1\$/\2/" <<< "$file")\"
needsversioning+=("$file")
done < <(sed -n "s/^[[:space:]]*$i=//p" PKGBUILD)
done