External tests: Replace hard-coded version in force_truffle_version() with a parameter

This commit is contained in:
Kamil Śliwak
2020-12-02 01:26:16 +01:00
parent e10712c173
commit bbf2471f64
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -85,9 +85,9 @@ function download_project
function force_truffle_version
{
local repo="$1"
local version="$1"
sed -i 's/"truffle":\s*".*"/"truffle": "^5.0.42"/g' package.json
sed -i 's/"truffle":\s*".*"/"truffle": "'"$version"'"/g' package.json
}
function truffle_setup