I am trying to create a file and write to it using a .sh
script but is not working(Nothing is being created, and I don't see any error).
This is how that part of my script looks like:
facesConfigContent="<?xml version='1.0' encoding='UTF-8'?>
<faces-config version=\"2.2\"
xmlns=\"http://xmlns.jcp.org/xml/ns/javaee\"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
xsi:schemaLocation=\"http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd\">
</faces-config>"
facesConfigFileName="faces-config.xml"
cd ~/Desktop/${artifactId}/src/main/webapp/WEB-INF
echo ${facesConfigContent} > ${facesConfigFileName}
Do you see something wrong?