fixed bad links file_list
This commit is contained in:
@@ -8,8 +8,9 @@
|
||||
exit
|
||||
}
|
||||
|
||||
sqlfile="$1"
|
||||
[[ -z "$2" ]] && {
|
||||
table=$( sqlite3 "$1" "SELECT name FROM sqlite_master WHERE name NOT LIKE 'sqlite%' LIMIT 1;" )
|
||||
table=$( sqlite3 "$sqlfile" "SELECT name FROM sqlite_master WHERE name NOT LIKE 'sqlite%' LIMIT 1;" )
|
||||
} || {
|
||||
table="$2"
|
||||
}
|
||||
@@ -19,5 +20,5 @@
|
||||
query="$table"
|
||||
}
|
||||
|
||||
sqlite3 -header -separator ' ' -nullvalue NA "$1" "$query" | ncsv
|
||||
sqlite3 -header -separator ' ' -nullvalue NA "$sqlfile" "$query" | ncsv
|
||||
|
||||
|
||||
Reference in New Issue
Block a user