use find rather than ls to prevent error when no file is there.
This commit is contained in:
@@ -9,9 +9,7 @@ while getopts "d" opt; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
find . -name 'quoteStore_202*.sqlite3.gz' | while read db; do
|
||||||
|
|
||||||
ls quoteStore_202*.sqlite3.gz | while read db; do
|
|
||||||
echo unpacking $db
|
echo unpacking $db
|
||||||
gzip -dc $db >/tmp/xx.sqlite3
|
gzip -dc $db >/tmp/xx.sqlite3
|
||||||
echo processing...
|
echo processing...
|
||||||
|
|||||||
Reference in New Issue
Block a user