Browse Source

fix issue caused by sed -i on osx

umbrel
kenshin-samourai 5 years ago
parent
commit
3bdae3e720
  1. 6
      docker/my-dojo/install/upgrade-scripts.sh

6
docker/my-dojo/install/upgrade-scripts.sh

@ -72,7 +72,11 @@ update_config_file() {
cp -p $2 $1
while IFS='=' read -r key val ; do
sed -i "s~$key=.*~$key=$val~g" "$1"
if [[ $OSTYPE == darwin* ]]; then
sed -i "" "s~$key=.*~$key=$val~g" "$1"
else
sed -i "s~$key=.*~$key=$val~g" "$1"
fi
done < ./original.lines.raw
rm ./original.keys.raw

Loading…
Cancel
Save