My config.yml file is set up to extract a tar.xz file to a directory. Whenever it tries to extract it, it fails with the error tar: -C: Cannot open: No such file or directory
. I have tried on a docker image and a machine but both fail with the same error. I also tried running the exact same commands in a docker container on my computer and it works fine. My config.yml file looks like this:
version: 2
jobs:
build:
machine:
image: ubuntu-1604:201903-01
steps:
- checkout
- run:
name: Installed prerequisite packages
command: |
sudo apt update -q
sudo apt install -y -q curl wget xz-utils
- run:
name: Extract and copy files
command: |
mkdir rootfs
dir
tar -xvf $TAR -C rootfs