diff options
Diffstat (limited to 'sd-add.fish')
-rw-r--r-- | sd-add.fish | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sd-add.fish b/sd-add.fish new file mode 100644 index 0000000..1b580a6 --- /dev/null +++ b/sd-add.fish @@ -0,0 +1,5 @@ +function sd-add + set cardfile cards + set idx (math 1+(sqlite3 "$cardfile" "select max(idx) from cards")) + sqlite3 "$cardfile" "insert into cards values ($idx, 256, '$argv[1]', '$argv[2]')" +end |