Fix config.yaml path

This commit is contained in:
Shivam Mathur
2019-09-28 07:08:10 +05:30
parent 651d2619bb
commit 932b66f3fc
5 changed files with 66 additions and 1 deletions

View File

@ -35,7 +35,7 @@ echo 'export EXTRA_LIBS="/usr/local/opt/readline/lib/libhistory.dylib
/usr/local/opt/icu4c/lib/libicutu.dylib
/usr/local/opt/icu4c/lib/libicuuc.dylib"'
} >> ~/.bash_profile
config_file=$(pwd)/src/config.yaml
config_file=$(pwd)/config.yaml
cd ~ || echo "could not move to ~"
curl -L -O https://github.com/phpbrew/phpbrew/raw/master/phpbrew >/dev/null 2>&1
chmod +x ./phpbrew

View File

@ -22,6 +22,7 @@ async function run() {
version,
os_version
);
darwin += await features.addExtension(extension_csv, version, os_version);
darwin += await features.addINIValues(ini_values_csv, os_version);
darwin += await features.addCoverage(coverage, version, os_version);

View File

@ -48,6 +48,9 @@ export async function readScript(
case 'darwin':
switch (version) {
case '7.4':
fs.createReadStream(path.join(__dirname, '../src/config.yaml')).pipe(
fs.createWriteStream('config.yaml')
);
return fs.readFileSync(path.join(__dirname, '../src/7.4.sh'), 'utf8');
case '7.3':
default: