cutthecord/emojireplace.sh
2019-01-18 17:51:40 +03:00

10 lines
371 B
Bash

#!/bin/bash
EXTRACTED_DISCORD="/home/ave/Downloads/dic/com.discord-830"
EXTRACTED_MUTSTD="/home/ave/Downloads/emojo/72x72"
for filename in $EXTRACTED_DISCORD/res/raw/*.png; do
basefilename=$(basename $filename)
if [ -f $EXTRACTED_MUTSTD/$basefilename ]; then
echo "$basefilename replaced"
\cp $EXTRACTED_MUTSTD/$basefilename $filename
fi
done