Replaced every "exit" in the `friendica` CLI with "return"

This should possibly fix the Travis.yml test
pull/1/head
Philipp Holzer 2018-05-20 16:54:57 +02:00
rodzic a6d069de07
commit 3aebb1ac08
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 58160D7D6AF942B6
6 zmienionych plików z 12 dodań i 12 usunięć

Wyświetl plik

@ -48,7 +48,7 @@ friendica_help() {
echo " composer Executes the composer.phar executable for Friendica"
echo " install Installs Friendica"
echo " update Updates Friendica"
exit 1
return
}
# executes the Friendica console
@ -86,7 +86,7 @@ copy_sources() {
if version_greater "$installed_version" "$image_version"; then
echo "Can't copy Friendica sources because the version of the data ($installed_version) is higher than the docker image ($image_version)"
exit 1;
return;
fi
if version_greater "$image_version" "$installed_version"; then

Wyświetl plik

@ -48,7 +48,7 @@ friendica_help() {
echo " composer Executes the composer.phar executable for Friendica"
echo " install Installs Friendica"
echo " update Updates Friendica"
exit 1
return
}
# executes the Friendica console
@ -86,7 +86,7 @@ copy_sources() {
if version_greater "$installed_version" "$image_version"; then
echo "Can't copy Friendica sources because the version of the data ($installed_version) is higher than the docker image ($image_version)"
exit 1;
return;
fi
if version_greater "$image_version" "$installed_version"; then

Wyświetl plik

@ -48,7 +48,7 @@ friendica_help() {
echo " composer Executes the composer.phar executable for Friendica"
echo " install Installs Friendica"
echo " update Updates Friendica"
exit 1
return
}
# executes the Friendica console
@ -86,7 +86,7 @@ copy_sources() {
if version_greater "$installed_version" "$image_version"; then
echo "Can't copy Friendica sources because the version of the data ($installed_version) is higher than the docker image ($image_version)"
exit 1;
return;
fi
if version_greater "$image_version" "$installed_version"; then

Wyświetl plik

@ -48,7 +48,7 @@ friendica_help() {
echo " composer Executes the composer.phar executable for Friendica"
echo " install Installs Friendica"
echo " update Updates Friendica"
exit 1
return
}
# executes the Friendica console
@ -86,7 +86,7 @@ copy_sources() {
if version_greater "$installed_version" "$image_version"; then
echo "Can't copy Friendica sources because the version of the data ($installed_version) is higher than the docker image ($image_version)"
exit 1;
return;
fi
if version_greater "$image_version" "$installed_version"; then

Wyświetl plik

@ -48,7 +48,7 @@ friendica_help() {
echo " composer Executes the composer.phar executable for Friendica"
echo " install Installs Friendica"
echo " update Updates Friendica"
exit 1
return
}
# executes the Friendica console
@ -86,7 +86,7 @@ copy_sources() {
if version_greater "$installed_version" "$image_version"; then
echo "Can't copy Friendica sources because the version of the data ($installed_version) is higher than the docker image ($image_version)"
exit 1;
return;
fi
if version_greater "$image_version" "$installed_version"; then

Wyświetl plik

@ -48,7 +48,7 @@ friendica_help() {
echo " composer Executes the composer.phar executable for Friendica"
echo " install Installs Friendica"
echo " update Updates Friendica"
exit 1
return
}
# executes the Friendica console
@ -86,7 +86,7 @@ copy_sources() {
if version_greater "$installed_version" "$image_version"; then
echo "Can't copy Friendica sources because the version of the data ($installed_version) is higher than the docker image ($image_version)"
exit 1;
return;
fi
if version_greater "$image_version" "$installed_version"; then