mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-23 13:36:31 +02:00
19 lines
228 B
Bash
19 lines
228 B
Bash
#!/bin/bash
|
|
|
|
code=`cat "$1"`
|
|
|
|
shift
|
|
|
|
argv_text=""
|
|
|
|
for arg in "$@"
|
|
do
|
|
argv_text+='insert into argv (arg) values ("'"`echo "$arg" | sed 's/"/""/g'`"'");
|
|
'
|
|
done
|
|
|
|
|
|
sqlite3 <<< "create table argv (arg text);
|
|
$argv_text
|
|
$code"
|
|
|