From c7824ace54ac3d1f4a5283136d197f0184681c03 Mon Sep 17 00:00:00 2001 From: Joshua Newton Date: Tue, 24 May 2022 09:38:33 -0400 Subject: [PATCH] Change `for i in ls` to `for i in *` Fixes https://github.com/spinalcordtoolbox/build_ANTs/pull/3#discussion_r878535057. --- .github/workflows/build-ants.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-ants.yml b/.github/workflows/build-ants.yml index 5ed4ed4..f1f7a52 100644 --- a/.github/workflows/build-ants.yml +++ b/.github/workflows/build-ants.yml @@ -69,7 +69,7 @@ jobs: # snip out the apps we need for https://github.com/neuropoly/spinalcordtoolbox, since including all of ANTS is too much mkdir sct-apps/ cp antsbin/ANTS-build/Examples/{antsRegistration,antsSliceRegularizedRegistration,antsApplyTransforms,ComposeMultiTransform} sct-apps - (cd sct-apps; for i in `ls`; do mv $i isct_$i; done) + (cd sct-apps; for i in *; do mv $i isct_$i; done) cp COPYING.txt sct-apps tar -zcvf sct-apps_${{ env.ARTIFACT }}.tar.gz sct-apps/ continue-on-error: true