From 0a0a3c5aa3e4508bc73b263f1f2ac80fef7a3faa Mon Sep 17 00:00:00 2001 From: Jeffrey Serio <23226432+hyperreal64@users.noreply.github.com> Date: Wed, 6 Mar 2024 21:29:20 -0600 Subject: [PATCH] Fix Nu copy command to find --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e468cb9..7cb8081 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -42,7 +42,7 @@ fedora-distrobox-build-job: - buildah run $container -- dnf clean all - buildah run $container -- wget "https://github.com/nushell/nushell/releases/download/${NU_RELEASE}/nu-${NU_RELEASE}-x86_64-linux-gnu-full.tar.gz" -O /tmp/nu.tar.gz - buildah run $container -- tar xvf /tmp/nu.tar.gz -C /tmp - - buildah run $container -- cp -v "/tmp/nu-${NU_RELEASE}-x86_64-linux-gnu-full/nu*" /usr/local/bin/ + - buildah run $container -- find "/tmp/nu-${NU_RELEASE}-x86_64-linux-gnu-full" -type f -not -name "LICENSE" -not -name "README.txt" -exec cp -v {} /usr/local/bin/ \; - buildah run $container -- sh -c 'echo "/usr/local/bin/nu" | tee -a /etc/shells' - buildah run $container -- /usr/local/bin/nu -c 'register /usr/local/bin/nu_plugin_formats' - buildah commit --squash --rm $container "$FQ_IMAGE_NAME"