refs #5576 perf: remove echo from sh files
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Javier Segarra 2023-12-22 09:57:27 +01:00
parent 1196b32148
commit 55b737f376
2 changed files with 0 additions and 5 deletions

View File

@ -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

View File

@ -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