From 942ec202bc954e66d55fc20b390d08d016f5db4f Mon Sep 17 00:00:00 2001 From: whatever127 Date: Thu, 2 May 2019 01:54:26 +0200 Subject: [PATCH] Fix config being read from current directory instead of script directory --- convert.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/convert.sh b/convert.sh index 094f028..d8678e4 100644 --- a/convert.sh +++ b/convert.sh @@ -1,13 +1,13 @@ #!/bin/bash -scriptName="UUP Converter v0.5.0" +scriptName="UUP Converter v0.5.1" UUP_CONVERTER_SCRIPT=1 -if [ -f `pwd`/convert_ve_plugin ]; then - . `pwd`/convert_ve_plugin +if [ -f `dirname $0`/convert_ve_plugin ]; then + . `dirname $0`/convert_ve_plugin fi -if [ -f `pwd`/convert_config_linux ]; then - . `pwd`/convert_config_linux +if [ -f `dirname $0`/convert_config_linux ]; then + . `dirname $0`/convert_config_linux else VIRTUAL_EDITIONS_LIST="CoreSingleLanguage Enterprise EnterpriseN Education \ EducationN ProfessionalEducation ProfessionalEducationN \