diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-10-18 17:27:55 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-10-18 17:27:55 -0400 |
commit | 1b79183079998bc670df23a3d72e16ffc7a59d70 (patch) | |
tree | a9d96c6bff316e54256195ce25e1c8b8482bc0be /jh-mksource.sh | |
parent | b84f3f95f0835b26856663faf564b29b23961d03 (diff) |
fix several "small" problems
Diffstat (limited to 'jh-mksource.sh')
-rw-r--r-- | jh-mksource.sh | 5 |
1 files changed, 5 insertions, 0 deletions
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" |