Fix Nu copy command to find

This commit is contained in:
Jeffrey Serio 2024-03-06 21:29:20 -06:00
parent c336b604f2
commit 0a0a3c5aa3

View File

@ -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"