replace foil script

This commit is contained in:
Florian Baumann 2023-04-27 06:54:13 +02:00
parent 104b9b6e96
commit d9bb463be9

13
scripts/replace.sh Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env bash
# This script replaces a normal card with a foil card I needed this because the
# tracking of foils was only added in version 3.5.0 of serra
# give set code as $1 like "dmr"
: ${1:?}
while true; do
read -p "$1> " card
serra add --foil ${1}/${card}
serra remove ${1}/${card}
done