12 lines
285 B
Bash
Executable File
12 lines
285 B
Bash
Executable File
#!/bin/bash
|
|
|
|
for FILE in $(ls $1/images); do
|
|
ITEM=$(basename -s .png $FILE)
|
|
MOD=$(basename $(dirname $1))
|
|
TARGET_DIR="./static/browse/$MOD/$ITEM"
|
|
TARGET_FILE="./static/browse/$MOD/$ITEM/icon.png"
|
|
|
|
mkdir -p "$TARGET_DIR"
|
|
mv "$1/images/$FILE" "$TARGET_FILE"
|
|
done
|