mirror of
https://github.com/actix/examples
synced 2024-11-24 06:43:00 +01:00
25f7ce87b4
Fix error that occurs if script is used like in the async_db readme. Error before this change: ``` bash $ LANG=C bash db/setup_db.sh db/setup_db.sh: line 2: db.sql: No such file or directory Error: cannot open "nyc_centralpark_weather.csv ```
5 lines
147 B
Bash
Executable File
5 lines
147 B
Bash
Executable File
#!/usr/bin/env bash
|
|
cd $(dirname "$0")
|
|
sqlite3 ../weather.db < db.sql
|
|
sqlite3 -csv ../weather.db ".import nyc_centralpark_weather.csv nyc_weather"
|