options.conf -- ${OPTIONS_CONF}

ostendo

Verified User
Joined
Dec 6, 2006
Messages
67
Wouldn't it be better to change:

Code:
# Write options.conf
if [ ! -e options.conf ]; then
        echo "Can not find ${OPTIONS_CONF}, writing defaults."
into:

Code:
# Write options.conf
if [ ! -e ${OPTIONS_CONF} ]; then
        echo "Can not find ${OPTIONS_CONF}, writing defaults."
?

I tried to execute, from another directory, /usr/local/directadmin/custombuild/build update, but got the error that options.conf didn't exist. It does, but not in the "current" directory.

This should btw also be changed in:


Code:
# Check if options.conf exists
if [ ! -e options.conf ]; then
        echo "Options file options.conf does not exist."
        exit 1
fi
 
Top