minor: refactorings

This commit is contained in:
EV21 committed 2023-02-20 14:38:09 +01:00
1 parent 73fda71f99
commit e74c2b0b4a
7 files changed
+163 -163

No files matched your search

+3 -3
View File
@@ -146,7 +146,7 @@ function process_parameters
function version_lower_than
{
test "$(echo "$@" |
tr " " "n" |
tr " " "\n" |
sort --version-sort --reverse |
head --lines=1)" != "$1"
}
@@ -163,7 +163,7 @@ function is_data_used_in_nextcloud_directory
fi
}
function yes-no_question
function yes_no_question
{
local question=$1
while true
@@ -219,7 +219,7 @@ function main
then
echo "There is a new point release version available."
echo "Doing update from $CURRENT_VERSION to $LATEST_VERSION"
if no_interaction_mode || yes-no_question "Do you want to start the update procedure?"
if no_interaction_mode || yes_no_question "Do you want to start the update procedure?"
then do_update_procedure
fi
fi