From 1b79183079998bc670df23a3d72e16ffc7a59d70 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 18 Oct 2012 17:27:55 -0400 Subject: fix several "small" problems --- jh-mksource.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'jh-mksource.sh') diff --git a/jh-mksource.sh b/jh-mksource.sh index c40a739..31e40c7 100644 --- a/jh-mksource.sh +++ b/jh-mksource.sh @@ -1,5 +1,10 @@ #!/bin/bash +quote () { + local quoted=${1//\'/\'\\\'\'}; + printf "'%s'" "$quoted" +} + quote_args() { for arg in "$@"; do quote "$arg" -- cgit v1.2.3-54-g00ecf