mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-07-17 01:39:06 +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.
|
# Skip the config file name argument.
|
||||||
shift
|
shift
|
||||||
|
args=()
|
||||||
args=""
|
for arg in "$@"; do
|
||||||
for arg in $@; do
|
args+=(-e "$arg")
|
||||||
args="$args -e $arg"
|
|
||||||
done
|
done
|
||||||
|
|
||||||
cat - | sed $args
|
sed "${args[@]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user