vendor: update buildkit v0.14.1

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi
2024-06-18 09:07:21 -07:00
parent f42a4a1e94
commit cb1be7214a
5 changed files with 10 additions and 9 deletions

View File

@ -429,7 +429,8 @@ func (sw *shellWord) processDollar() (string, error) {
case '%', '#':
// %/# matches the shortest pattern expansion, %%/## the longest
greedy := false
if word[0] == byte(ch) {
if len(word) > 0 && word[0] == byte(ch) {
greedy = true
word = word[1:]
}