mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
External tests: Replace hard-coded version in force_truffle_version() with a parameter
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user