--- a/scripts/sql-dk.sh Sat May 16 20:13:43 2015 +0200
+++ b/scripts/sql-dk.sh Sat May 16 20:25:16 2015 +0200
@@ -5,8 +5,8 @@
. ~/.sql-dk/environment.sh
else
mkdir -p ~/.sql-dk/
- touch ~/.sql-dk/environment.sh
# link/copy support files for configuration:
+ [ -f ~/.sql-dk/environment.sh ] || touch ~/.sql-dk/environment.sh
[ -f ~/.sql-dk/config.xsd ] || ln -s /usr/share/doc/sql-dk/config.xsd ~/.sql-dk/config.xsd
[ -f ~/.sql-dk/config.rnc ] || ln -s /usr/share/doc/sql-dk/config.rnc ~/.sql-dk/config.rnc
[ -f ~/.sql-dk/config.xsl ] || gunzip < /usr/share/doc/sql-dk/config.xsl.gz > ~/.sql-dk/config.xsl # might not work in www browser if just symlinked