remove (())

This commit is contained in:
Daniel Hansson 2021-11-30 23:25:38 +01:00 committed by GitHub
parent 8de31c5589
commit 340d25709c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -595,8 +595,8 @@ fi
if grep -r loolwsd "$SITES_AVAILABLE"/*.conf
then
print_text_in_color "$ICyan" "Updating Collabora Engine..."
LOOLWSDCONF=($(grep -r loolwsd "$SITES_AVAILABLE"/*.conf | awk '{print $1}' | cut -d ":" -f1))
mapfile -t LOOLWSDCONF <<< "$LOOLWSDCONF"
LOOLWSDCONF=$(grep -r loolwsd "$SITES_AVAILABLE"/*.conf | awk '{print $1}' | cut -d ":" -f1)
mapfile -t LOOLWSDCONF <<< "$LOOLWSDCONF"
for apacheconf in "${LOOLWSDCONF[@]}"
do
sed -i "s|/loleaflet|/browser|g" "${apacheconf}"