Check length

This commit is contained in:
Bob Mottram 2016-01-26 15:40:56 +00:00
parent 701a8a949f
commit aecbab22c8
2 changed files with 7 additions and 1 deletions

View File

@ -980,6 +980,9 @@ function read_configuration {
if grep -q "OWNCLOUD_MUSIC_APP_COMMIT" $CONFIGURATION_FILE; then
OWNCLOUD_MUSIC_APP_COMMIT=$(grep "OWNCLOUD_MUSIC_APP_COMMIT" $CONFIGURATION_FILE | awk -F '=' '{print $2}')
fi
if grep -q "HUBZILLA_REPO" $CONFIGURATION_FILE; then
HUBZILLA_REPO=$(grep "HUBZILLA_REPO" $CONFIGURATION_FILE | awk -F '=' '{print $2}')
fi
if grep -q "HUBZILLA_COMMIT" $CONFIGURATION_FILE; then
HUBZILLA_COMMIT=$(grep "HUBZILLA_COMMIT" $CONFIGURATION_FILE | awk -F '=' '{print $2}')
fi

View File

@ -120,7 +120,10 @@ function create_trove_user {
}
function update_repos_from_friend {
if [ ! $FRIENDS_TROVE_SERVER ] then
if [ ! $FRIENDS_TROVE_SERVER ]; then
return
fi
if [ ${#FRIENDS_TROVE_SERVER} -lt 2 ]; then
return
fi