X-Git-Url: https://git.rapsys.eu/distcook/blobdiff_plain/658759498941fe6b714790087db75ea29050ddee..HEAD:/lib/export.sh?ds=inline diff --git a/lib/export.sh b/lib/export.sh index b3d6716..c443936 100644 --- a/lib/export.sh +++ b/lib/export.sh @@ -1,9 +1,9 @@ #! /bin/sh -e # Clear config -cat /dev/null > root.config +cat /dev/null > root.conf # Append every config parameters for i in `cat config/*.conf | perl -pne 'undef $_ if /^#/; s/=.*$//'`; do - eval echo ${i}=\$$i | tee -a root.config + echo "$i='$(eval echo \$$i)'" | tee -a root.conf done