Commit d77bd707 authored by nanahira's avatar nanahira

patch spsummon

parent eeba09e5
No preview for this file type
#!/bin/bash
latestDatabase=$1
currentDatabase="./cards.cdb"
echo 'select id from datas where type & 0x2000000 > 0' | \
sqlite3 "$latestDatabase" | \
sed -e "s/^/update datas set type = (type | 0x2000000) where id = /g" -e "s/$/;/g" | \
tee /dev/stderr | \
sqlite3 "$currentDatabase"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment