commit e92cf939614392dffdfd2e006a169c82c76b8e29 from: Omar Polo date: Sun May 07 07:42:35 2023 UTC don't hardcode path to sqlite3 and mshow binaries commit - 7b8263f50909ea7b97af29e5d0257ac08c89d17e commit + e92cf939614392dffdfd2e006a169c82c76b8e29 blob - 03afb9468b6e39ee10a428cbf24726c20484d0d8 blob + c18e507bc0032d3c40fb49a3698293f0f6986380 --- smingest +++ smingest @@ -15,8 +15,7 @@ use File::Basename; die "usage: $0 dbpath\n" if @ARGV != 1; my $dbpath = shift @ARGV; -open(my $sqlite, "|-", "/usr/local/bin/sqlite3", $dbpath) - or die "can't spawn sqlite3"; +open(my $sqlite, "|-", "sqlite3", $dbpath) or die "can't spawn sqlite3"; if (`uname` =~ "OpenBSD") { use OpenBSD::Pledge; @@ -32,7 +31,7 @@ say $sqlite ".import --csv /dev/stdin email" while (<>) { chomp; - open(my $fh, "-|", "/usr/local/bin/mshow", "-Atext/plain", "-NF", $_) + open(my $fh, "-|", "mshow", "-Atext/plain", "-NF", $_) or die "can't run mshow $_: $!"; my $f = $_;