Fix always setting SEQ_CONFIG_HOME

This commit is contained in:
2021-02-01 22:24:49 +01:00
parent e0daa360e9
commit ad18a2b8d5

View File

@@ -350,10 +350,10 @@ initSeqConfig() {
echo -n " [I] Creating $(realpath $configDir)..." echo -n " [I] Creating $(realpath $configDir)..."
exe mkdir -p "$configDir" && echo "Ok" || echo "Nok" exe mkdir -p "$configDir" && echo "Ok" || echo "Nok"
exe chmod 700 "$configDir" exe chmod 700 "$configDir"
else
SEQ_CONFIG_HOME="$configDir"
fi fi
SEQ_CONFIG_HOME="$configDir"
if [ -s "$configLoc" ] ; then if [ -s "$configLoc" ] ; then
if [ $QUIET -ne 2 ] ; then echo " [I] Using configuration file: $configLoc" ; fi if [ $QUIET -ne 2 ] ; then echo " [I] Using configuration file: $configLoc" ; fi
SEQ_CONFIG_FILE="$configLoc" SEQ_CONFIG_FILE="$configLoc"