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%.*}"
|
imageName="${fileName%.*}"
|
||||||
hash=$(echo -n "$imageName" | sha1sum | awk '{print $1}')
|
hash=$(echo -n "$imageName" | sha1sum | awk '{print $1}')
|
||||||
first=$(echo "$hash" | cut -c"$START"-"$DIR_LEVELS")
|
first=$(echo "$hash" | cut -c"$START"-"$DIR_LEVELS")
|
||||||
echo "$first"
|
|
||||||
second=$(echo "$hash" | cut -c"$DIR_LEVELS"-"$END")
|
second=$(echo "$hash" | cut -c"$DIR_LEVELS"-"$END")
|
||||||
echo "$second"
|
|
||||||
path=$(dirname "$image")/${first}/${second}
|
path=$(dirname "$image")/${first}/${second}
|
||||||
mkdir -p $path
|
mkdir -p $path
|
||||||
# Crear un enlace simbólico en la carpeta principal
|
# Crear un enlace simbólico en la carpeta principal
|
||||||
mv $image $path/$fileName
|
mv $image $path/$fileName
|
||||||
|
|
||||||
fi
|
fi
|
||||||
# done
|
# done
|
||||||
# fi
|
# fi
|
||||||
|
|
|
@ -6,8 +6,6 @@ for collection in */ ; do
|
||||||
fileName=$(basename "$image")
|
fileName=$(basename "$image")
|
||||||
imageName="${fileName%.*}"
|
imageName="${fileName%.*}"
|
||||||
hash=$(echo -n "$imageName" | sha1sum | awk '{print $1}')
|
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}
|
mkdir -p $(dirname "$image")/${hash:2:2}/${hash:0:2}
|
||||||
ln -s $image $(dirname "$image")/${hash:2:2}/${hash:0:2}/$fileName
|
ln -s $image $(dirname "$image")/${hash:2:2}/${hash:0:2}/$fileName
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue