We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3512332 commit 190ccd8Copy full SHA for 190ccd8
1 file changed
benchmark/scripts/run_single_benchmark.sh
@@ -15,10 +15,11 @@ function docker_compose_up() {
15
16
# Adjust the SQLite connection string to use absolute path
17
function adjust_sqlite_connection_string() {
18
+ sed_pattern="s|Data Source=\([^;]*\.db\);|Data Source=$(pwd)/\1;|"
19
if [[ "$OSTYPE" == "darwin"* ]]; then
- sed -i '' "s|Data Source=\([^;]*\.db\);|Data Source=$working_directory/\1;|" .env
20
+ sed -i '' "$sed_pattern" .env
21
else
- sed -i "s|Data Source=\([^;]*\.db\);|Data Source=$($working_directory)/\1;|" .env
22
+ sed -i "$sed_pattern" .env
23
fi
24
}
25
0 commit comments