Check config file length

This commit is contained in:
Bob Mottram 2016-10-11 13:29:10 +01:00
parent f3a6124fe1
commit 7785fd8542
1 changed files with 3 additions and 0 deletions

View File

@ -127,6 +127,9 @@ function write_config_param {
if [ ! $CONFIGURATION_FILE ]; then
CONFIGURATION_FILE=$HOME/${PROJECT_NAME}.cfg
fi
if [ ${#CONFIGURATION_FILE} -eq 0 ]; then
CONFIGURATION_FILE=$HOME/${PROJECT_NAME}.cfg
fi
if [ ${#param_name} -gt 0 ]; then
if [ ${#param_value} -gt 0 ]; then