diff --git a/storage/image/prod.sh b/storage/image/prod.sh index 9c6ab66c98..d764c0dd48 100644 --- a/storage/image/prod.sh +++ b/storage/image/prod.sh @@ -17,14 +17,11 @@ for image in "$MAIN_DIR"/*; do imageName="${fileName%.*}" hash=$(echo -n "$imageName" | sha1sum | awk '{print $1}') first=$(echo "$hash" | cut -c"$START"-"$DIR_LEVELS") - echo "$first" second=$(echo "$hash" | cut -c"$DIR_LEVELS"-"$END") - echo "$second" path=$(dirname "$image")/${first}/${second} mkdir -p $path # Crear un enlace simbólico en la carpeta principal mv $image $path/$fileName - fi # done # fi diff --git a/storage/image/reestructure.sh b/storage/image/reestructure.sh index 3f569e63ce..06786bffd8 100644 --- a/storage/image/reestructure.sh +++ b/storage/image/reestructure.sh @@ -6,8 +6,6 @@ for collection in */ ; do fileName=$(basename "$image") imageName="${fileName%.*}" hash=$(echo -n "$imageName" | sha1sum | awk '{print $1}') - echo $image - echo ${hash:2:2}/${hash:0:2} mkdir -p $(dirname "$image")/${hash:2:2}/${hash:0:2} ln -s $image $(dirname "$image")/${hash:2:2}/${hash:0:2}/$fileName done