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

Commit 8e08062e authored by AVINASH GUSAIN's avatar AVINASH GUSAIN
Browse files

sed to through error with grep

parent 830f587f
Loading
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -244,7 +244,6 @@ RUN sed -i 's/{name:(0,O.Iu)("memories","Archive"),icon:Yo,callback:this.archive
RUN sed -i 's/{name:"archive",icon:Yo,title:(0,O.Iu)("memories","Archive")},//g' ${BASE_DIR}/custom_apps/memories/js/memories-main.js

# Rename Memories to Gallery
sudo grep -q "abc" test.php && sudo sed -i 's/abc/xyz/' test.php || { echo "Pattern not found!"; exit 1; }
#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 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