diff --git a/script/pre_app_install.sh b/script/pre_app_install.sh index db7e3859..56b4d5ec 100644 --- a/script/pre_app_install.sh +++ b/script/pre_app_install.sh @@ -65,8 +65,8 @@ for app_directory in "${APPS_DIR:?}"/*; do fi sed -i "s/^ key: ${app_name}/ key: ${app_name_pre}/g" "${LOCAL_DIR:?}/$app_name_pre/data.yml" - sed -i "/^name: /s/name: \(.*\)/name: \1 预览版/" "${LOCAL_DIR:?}/$app_name_pre/data.yml" - sed -i "/^ name: /s/ name: \(.*\)/ name: \1 预览版/" "${LOCAL_DIR:?}/$app_name_pre/data.yml" + sed -i "/^name: /s/\(name: .*\)/\1 预览版/" "${LOCAL_DIR:?}/$app_name_pre/data.yml" + sed -i "/^ name: /s/\( name: .*\)/\1 预览版/" "${LOCAL_DIR:?}/$app_name_pre/data.yml" done echo "$(date): Step 3 - Copying envs directory..."