refs #5576 perf: remove echo from sh files
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
1196b32148
commit
55b737f376
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue