mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
fix quotation issues by using a bash array
see: http://mywiki.wooledge.org/BashFAQ/050
This commit is contained in:
@@ -2,10 +2,9 @@
|
||||
|
||||
# Skip the config file name argument.
|
||||
shift
|
||||
|
||||
args=""
|
||||
for arg in $@; do
|
||||
args="$args -e $arg"
|
||||
args=()
|
||||
for arg in "$@"; do
|
||||
args+=(-e "$arg")
|
||||
done
|
||||
|
||||
cat - | sed $args
|
||||
sed "${args[@]}"
|
||||
|
||||
Reference in New Issue
Block a user