chg: [config] updated regex to make it more generic
parent
066fa96d7d
commit
ab39699cef
|
@ -1,9 +1,7 @@
|
||||||
version=$(cat ./VERSION.json)
|
#! /usr/bin/env bash
|
||||||
version_affected='{"major":2, "minor":10, "hotfix":3}'
|
|
||||||
if [[ $version == "$version_affected" ]]; then
|
conf_file='./config/autoload/local.php'
|
||||||
conf_file='./config/autoload/local.php'
|
if [ -f "$conf_file" ]; then
|
||||||
if [ -f "$conf_file" ]; then
|
sed -E -i "s/(.*) => (.*)\/v1/\1 => \2/g" "$conf_file"
|
||||||
sed -i 's/https:\/\/objects.monarc.lu\/api\/v1\//https:\/\/objects.monarc.lu\/api\//g' "$conf_file"
|
echo "Done for $conf_file"
|
||||||
echo "Done for $conf_file"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue