Skip to content

Commit

Permalink
remove usage checking for functions
Browse files Browse the repository at this point in the history
  • Loading branch information
mrrfv committed May 19, 2023
1 parent d7be39e commit 4b1878d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
# Application metadata - don't change
# This is used to download a stable, compatible version of the Android companion app as well as ensure backwards compatibility,
# so it should match the tag name in GitHub Releases.
APP_VERSION="v1.0.7"
APP_VERSION="v1.0.8"

# We use whiptail for showing dialogs.
# Whiptail is used similarly as dialog, but we can't install it on macOS using Homebrew IIRC.
Expand Down
11 changes: 0 additions & 11 deletions functions/helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,6 @@ function install_companion_app() {
# The selected option is stored in the result variable
# If no option is selected or an error occurs, the function exits with an error message
function select_option_from_list() {
# Check if the number of arguments is 3
if [[ $# -ne 3 ]]; then
echo "Usage: select_option_from_list prompt options[@] result_var"
exit 1
fi

# Assign the arguments to local variables
local prompt="$1"
local options=("${!2}") # Use indirect expansion to get the array from the second argument
Expand Down Expand Up @@ -122,11 +116,6 @@ function select_option_from_list() {


function get_text_input() {
if [[ $# -ne 2 ]]; then
echo "Invalid usage. Usage: get_text_input prompt result_var [default_text]"
exit 1
fi

local prompt="$1"
local result_var="$2"
local default_text="$3"
Expand Down

0 comments on commit 4b1878d

Please sign in to comment.