Skip to content

Commit 7483a44

Browse files
committed
Updating import script to fix bug on mirrors
1 parent a23fbcd commit 7483a44

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

dockerfiles/mirror.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,11 @@ if [[ $1 = "mirror-releases" ]] && [ $# -eq 2 ]; then
9393
echo -e "\n\e[1;34m=== Spack recipes\e[0m"
9494
prj=spack_recipes
9595
download_release_and_untar $prj $2 .
96-
mv $prj-$2/meshing/packages packages
97-
rm -rf packages/machine_types
96+
rm -rf $prj-$2/meshing/packages/machine_types
9897

9998
echo -e "\n\e[1;34m=== Tar recipes and mirrors\e[0m"
100-
tar cvfz meshing_recipes.tar.gz -C packages .
101-
rm -rf packages $prj-$2
99+
tar cvfz meshing_recipes.tar.gz -C $prj-$2/meshing .
100+
rm -rf $prj-$2
102101

103102
# Tar all mirrors
104103
rm -rf meshing_mirror/machine_types

0 commit comments

Comments
 (0)