You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+ ACTION=up
+ shift
++ type -t sqlite3_check
+ [[ function = \f\u\n\c\t\i\o\n ]]
+ sqlite3_check
+ __generic_checker /usr/bin/sqlite3 'select name from sqlite_master where type = '\''table'\'';' 'create table `shmig_version`(version int not null primary key, migrated_at timestamp not null default (datetime(current_timestamp)));'
+ local exe=/usr/bin/sqlite3
+ local 'show=select name from sqlite_master where type = '\''table'\'';'
+ local 'create=create table `shmig_version`(version int not null primary key, migrated_at timestamp not null default (datetime(current_timestamp)));'
+ [[ -x /usr/bin/sqlite3 ]]
+ grep -F -qx shmig_version
+ sqlite3_cli 'select name from sqlite_master where type = '\''table'\'';'
+ local 'args=-bail -batch elmarelli-api.db'
+ [[ 1 -ne 0 ]]
+ /usr/bin/sqlite3 -bail -batch elmarelli-api.db
+ status=("${PIPESTATUS[@]}")
+ local status
+ [[ 141 -ne 0 ]]
+ return 1
+ exit 1
But this worked fine:
$ bash
$ sqlite3 -bail -batch elmarelli-api.db <<< 'select name from sqlite_master where type = '\''table'\'';'
shmig_version
venue
venue_event
fan
fan_event
$
Somehow, this code:
local status=("${PIPESTATUS[@]}")
[[ ${status[0]} -ne 0 ]] && return 1
The text was updated successfully, but these errors were encountered: