Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f3b5137 authored by AVINASH GUSAIN's avatar AVINASH GUSAIN
Browse files

sed to through error with grep

parent 8e08062e
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -245,7 +245,7 @@ RUN sed -i 's/{name:"archive",icon:Yo,title:(0,O.Iu)("memories","Archive")},//g'

# Rename Memories to Gallery
#RUN sed -i 's/<name>Memories<\/name>/<name>Gallery<\/name>/g' ${BASE_DIR}/custom_apps/memories/appinfo/info.xml
RUN grep -q "<name>Memories<\/name>/<name>Gallery<\/name>" ${BASE_DIR}/custom_apps/memories/appinfo/info.xml && sed -i 's/<name>Memories<\/name>/<name>Gallery<\/name>/g' ${BASE_DIR}/custom_apps/memories/appinfo/info.xml || { echo "Pattern not found!"; exit 1; }
RUN grep -q "<name>Memories<\/name>" ${BASE_DIR}/custom_apps/memories/appinfo/info.xml && sed -i 's/<name>Memories<\/name>/<name>Gallery<\/name>/g' ${BASE_DIR}/custom_apps/memories/appinfo/info.xml || { echo "Pattern not found!"; exit 1; }
RUN cd ${BASE_DIR}/custom_apps/memories/js && sed -i 's/Memories has been/Gallery has been/g' memories-main.js && sed -i 's/Memories has been/Gallery has been/g' memories-admin.js
RUN cd ${BASE_DIR}/custom_apps/memories/js && sed -i 's/Memories Settings/Gallery Settings/g' memories-main.js