Ooops...a little bug in my script. My apologies.
This is corrected.
#!/bin/bash
customfiles=( /openils/var/web/css/skin/default/register_custom.css /openils/var/web/xul/server/skin/global_custom.css /openils/var/web/xul/server/skin/simple_auth_custom.css /openils/var/web/xul/server/skin/cat_custom.css /openils/var/web/xul/server/skin/patron_display_custom.css /openils/var/web/xul/server/skin/patron_summary_custom.css /openils/var/web/xul/server/skin/circ_custom.css )
for file in "${customfiles[@]}" ; do
if [[ -e $file ]] then /bin/echo "$file already exists, will not make any changes" else /usr/bin/touch $file fi done exit 0
Ooops...a little bug in my script. My apologies.
This is corrected.
#!/bin/bash
customfiles=(
/openils/ var/web/ css/skin/ default/ register_ custom. css
/openils/ var/web/ xul/server/ skin/global_ custom. css
/openils/ var/web/ xul/server/ skin/simple_ auth_custom. css
/openils/ var/web/ xul/server/ skin/cat_ custom. css
/openils/ var/web/ xul/server/ skin/patron_ display_ custom. css
/openils/ var/web/ xul/server/ skin/patron_ summary_ custom. css
/openils/ var/web/ xul/server/ skin/circ_ custom. css
)
for file in "${customfiles[@]}" ; do
if [[ -e $file ]]
then /bin/echo "$file already exists, will not make any changes"
else /usr/bin/touch $file
fi
done
exit 0