1
0
Fork 0
mirror of https://github.com/engineer-man/piston.git synced 2025-05-05 19:36:26 +02:00
piston/packages/sqlite3/3.36.0/run
2022-06-01 16:52:35 -06:00

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"