Check length
This commit is contained in:
parent
701a8a949f
commit
aecbab22c8
|
@ -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
|
||||
|
|
|
@ -120,9 +120,12 @@ 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
|
||||
|
||||
new_repos=()
|
||||
for line in "${REPOS[@]}"
|
||||
|
|
Loading…
Reference in New Issue