Skip to content

tar error without --wildcards specified to enable pattern matching #1

@TerraTech

Description

@TerraTech

Ubuntu 16.04.2
tar 1.28
helm 2.5.1
helm-gpg 0.1.0

Using the tar command as written in gpg.sh:

chartyaml=$(tar -zxf $chart --exclude 'charts/' -O '*/Chart.yaml')

$ ls
wordpress-0.6.10.tgz

#FAILS#
$ tar -zxf wordpress-0.6.10.tgz --exclude 'charts/' -O '*/Chart.yaml'
tar: Pattern matching characters used in file names
tar: Use --wildcards to enable pattern matching, or --no-wildcards to suppress this warning
tar: */Chart.yaml: Not found in archive
tar: Exiting with failure status due to previous errors

#WORKS#
$ tar -zxf wordpress-0.6.10.tgz --wildcards --exclude 'charts/' -O '*/Chart.yaml'
appVersion: 4.8.1
description: Web publishing platform for building blogs and websites.
engine: gotpl
home: http://www.wordpress.com/
icon: https://bitnami.com/assets/stacks/wordpress/img/wordpress-stack-220x234.png
[..snip..]
sources:
- https://github.com/bitnami/bitnami-docker-mariadb
version: 0.7.0

$ tar --version
tar (GNU tar) 1.28
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.2 LTS
Release:        16.04
Codename:       xenial

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions