From 55b737f3761db335fdefc843727fc04034229d35 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Fri, 22 Dec 2023 09:57:27 +0100 Subject: [PATCH] refs #5576 perf: remove echo from sh files --- storage/image/prod.sh | 3 --- storage/image/reestructure.sh | 2 -- 2 files changed, 5 deletions(-) diff --git a/storage/image/prod.sh b/storage/image/prod.sh index 9c6ab66c9..d764c0dd4 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 3f569e63c..06786bffd 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