Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ale5000-git committed Aug 4, 2023
1 parent 5c58d39 commit 35de400
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions zip-content/inc/common-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,10 @@ initialize()
_detect_main_architectures
_generate_architectures_list

if test "${API:?}" -lt 1; then
ui_error 'Invalid API level'
fi

if test "${CPU64:?}" = 'false' && test "${CPU:?}" = 'false'; then
ui_error "Unsupported CPU, ABI list: ${_raw_arch_list:-}"
fi
Expand Down
4 changes: 1 addition & 3 deletions zip-content/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,8 @@ if test ! -e "${PRIVAPP_PATH:?}"; then ui_error 'The priv-app folder does NOT ex

if test "${API:?}" -ge 8; then
: ### Supported Android versions
elif test "${API:?}" -ge 1; then
ui_error 'Your Android version is too old'
else
ui_error 'Invalid API level'
ui_error 'Your Android version is too old'
fi

# Display info
Expand Down

0 comments on commit 35de400

Please sign in to comment.