diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-01-23 06:15:18 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-23 06:15:18 -0800 |
commit | f037f24b67c4fd95c9b85ecf40a7ba6d9c7dd7f6 (patch) | |
tree | 96665286b569c8cf79f43ef9adad7f1502eefbed /vendor/github.com/mattn | |
parent | 8098cbbee192e644de505e62c4aa0341f4acb4a5 (diff) | |
parent | 587a25fd8a9f903ffc45d6ca7442da3966f7443c (diff) | |
download | podman-f037f24b67c4fd95c9b85ecf40a7ba6d9c7dd7f6.tar.gz podman-f037f24b67c4fd95c9b85ecf40a7ba6d9c7dd7f6.tar.bz2 podman-f037f24b67c4fd95c9b85ecf40a7ba6d9c7dd7f6.zip |
Merge pull request #4947 from containers/dependabot/go_modules/github.com/containers/storage-1.15.7
build(deps): bump github.com/containers/storage from 1.15.5 to 1.15.7
Diffstat (limited to 'vendor/github.com/mattn')
-rw-r--r-- | vendor/github.com/mattn/go-shellwords/.travis.yml | 1 | ||||
-rw-r--r-- | vendor/github.com/mattn/go-shellwords/README.md | 1 | ||||
-rw-r--r-- | vendor/github.com/mattn/go-shellwords/shellwords.go | 6 |
3 files changed, 7 insertions, 1 deletions
diff --git a/vendor/github.com/mattn/go-shellwords/.travis.yml b/vendor/github.com/mattn/go-shellwords/.travis.yml index 6294d337f..b2904bffc 100644 --- a/vendor/github.com/mattn/go-shellwords/.travis.yml +++ b/vendor/github.com/mattn/go-shellwords/.travis.yml @@ -11,4 +11,3 @@ script: after_success: - bash <(curl -s https://codecov.io/bash) - diff --git a/vendor/github.com/mattn/go-shellwords/README.md b/vendor/github.com/mattn/go-shellwords/README.md index 9e1e65045..e91902f40 100644 --- a/vendor/github.com/mattn/go-shellwords/README.md +++ b/vendor/github.com/mattn/go-shellwords/README.md @@ -2,6 +2,7 @@ [![codecov](https://codecov.io/gh/mattn/go-shellwords/branch/master/graph/badge.svg)](https://codecov.io/gh/mattn/go-shellwords) [![Build Status](https://travis-ci.org/mattn/go-shellwords.svg?branch=master)](https://travis-ci.org/mattn/go-shellwords) +[![GoDoc](https://godoc.org/github.com/mattn/go-shellwords?status.svg)](http://godoc.org/github.com/mattn/go-shellwords) Parse line as shell words. diff --git a/vendor/github.com/mattn/go-shellwords/shellwords.go b/vendor/github.com/mattn/go-shellwords/shellwords.go index 2dca7f136..ff5e73091 100644 --- a/vendor/github.com/mattn/go-shellwords/shellwords.go +++ b/vendor/github.com/mattn/go-shellwords/shellwords.go @@ -144,11 +144,17 @@ loop: } case '"': if !singleQuoted && !dollarQuote { + if doubleQuoted && buf == "" { + got = true + } doubleQuoted = !doubleQuoted continue } case '\'': if !doubleQuoted && !dollarQuote { + if singleQuoted && buf == "" { + got = true + } singleQuoted = !singleQuoted continue } |