Comment 5 for bug 791225

Revision history for this message
Michael Peters (mrpeters) wrote :

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