summaryrefslogtreecommitdiffstats
path: root/system/csv2sql/stdin.diff
diff options
context:
space:
mode:
Diffstat (limited to 'system/csv2sql/stdin.diff')
-rw-r--r--system/csv2sql/stdin.diff19
1 files changed, 19 insertions, 0 deletions
diff --git a/system/csv2sql/stdin.diff b/system/csv2sql/stdin.diff
new file mode 100644
index 0000000000..7e04eda97e
--- /dev/null
+++ b/system/csv2sql/stdin.diff
@@ -0,0 +1,19 @@
+diff -Naur csv2sql-0.1/csv2sql csv2sql-0.1.patched/csv2sql
+--- csv2sql-0.1/csv2sql 2015-03-07 13:20:09.000000000 -0500
++++ csv2sql-0.1.patched/csv2sql 2022-07-08 15:50:54.975335386 -0400
+@@ -24,13 +24,9 @@
+ else
+ error "the CSV file that you specified (#{file}) does not exist. Exiting."
+ end
+- # Otherwise, verify that standard input exists
++ # Otherwise, read from stdin
+ else
+- if $stdin.fcntl(Fcntl::F_GETFL, 0) == 0
+- verbose "Will read data from standard input."
+- else
+- error "you did not specify a CSV input file, or provide standard input. Exiting."
+- end
++ verbose "Will read data from standard input."
+ end
+ end
+