Fix config being read from current directory instead of script directory

This commit is contained in:
whatever127 2019-05-02 01:54:26 +02:00
parent c44ce109bf
commit 942ec202bc

View File

@ -1,13 +1,13 @@
#!/bin/bash #!/bin/bash
scriptName="UUP Converter v0.5.0" scriptName="UUP Converter v0.5.1"
UUP_CONVERTER_SCRIPT=1 UUP_CONVERTER_SCRIPT=1
if [ -f `pwd`/convert_ve_plugin ]; then if [ -f `dirname $0`/convert_ve_plugin ]; then
. `pwd`/convert_ve_plugin . `dirname $0`/convert_ve_plugin
fi fi
if [ -f `pwd`/convert_config_linux ]; then if [ -f `dirname $0`/convert_config_linux ]; then
. `pwd`/convert_config_linux . `dirname $0`/convert_config_linux
else else
VIRTUAL_EDITIONS_LIST="CoreSingleLanguage Enterprise EnterpriseN Education \ VIRTUAL_EDITIONS_LIST="CoreSingleLanguage Enterprise EnterpriseN Education \
EducationN ProfessionalEducation ProfessionalEducationN \ EducationN ProfessionalEducation ProfessionalEducationN \