Skip to content

Commit e7d795e

Browse files
authored
Merge pull request #964 from OpenSourceBrain/fix-biomodels-copy
fix(biomodels): correct `mv` command
2 parents 1cda7fc + fd3d02e commit e7d795e

File tree

1 file changed

+2
-2
lines changed
  • applications/workspaces/tasks/biomodels-copy

1 file changed

+2
-2
lines changed

applications/workspaces/tasks/biomodels-copy/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ else
2929
echo Biomodels copy "${path}" to "${download_path}"
3030
echo "${path}" >> filelist
3131
done
32-
echo Biomodels downloading files
3332
# Move to temporary directory to rename only the downloaded files.
3433
# Otherwise we risk renaming all files, even ones where the user has used
3534
# '+' in the file name explicitly
3635
tempdir=$(mktemp -d)
36+
echo Biomodels downloading files in "${tempdir}"
3737
pushd "${tempdir}"
3838
aria2c --retry-wait=2 --max-tries=5 --input-file=filelist --max-concurrent-downloads=5 --max-connection-per-server=5 --allow-overwrite "true" --auto-file-renaming "false"
3939
rename -a '+' ' ' *.*
4040
popd
41-
mv "${tempdir}/*" .
41+
mv -v "${tempdir}/"* .
4242
# directory should be empty, so rmdir will work
4343
rmdir "${tempdir}"
4444
rm filelist -f

0 commit comments

Comments
 (0)