projects
/
migration-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
2da015e
)
mig-sql: silence warning if no $BIBSTART
author
Jason Etheridge
<jason@esilibrary.com>
Wed, 23 Aug 2017 20:42:32 +0000 (16:42 -0400)
committer
Jason Etheridge
<jason@esilibrary.com>
Wed, 23 Aug 2017 20:46:50 +0000 (16:46 -0400)
mig-bin/mig-sql
patch
|
blob
|
history
diff --git
a/mig-bin/mig-sql
b/mig-bin/mig-sql
index
5b79e17
..
c218076
100755
(executable)
--- a/
mig-bin/mig-sql
+++ b/
mig-bin/mig-sql
@@
-33,12
+33,15
@@
use Mig;
pod2usage(-verbose => 2) if defined $ARGV[0] && $ARGV[0] eq '--help';
-system(
- 'psql',
- '-vbibstart=' . $BIBSTART,
- # TODO inject mig-tracked variables here
- @ARGV
+my @MYARGV = (
+ 'psql'
);
+if (defined $BIBSTART) {
+ push @MYARGV, '-vbibstart=' . $BIBSTART;
+}
+# TODO inject more mig-tracked variables here
+
+system(@MYARGV, @ARGV);
exit 0;