fix: arithmetic expression caused issues
* replace it with string conditional Signed-off-by: Dominik Willner th33xitus@gmail.com
This commit is contained in:
@@ -87,7 +87,7 @@ function upload_selection(){
|
||||
back_footer
|
||||
while true; do
|
||||
read -p "${cyan}###### Please select:${white} " option
|
||||
if [ -n "${option}" ] && ((option < ${#logfiles[@]})); then
|
||||
if [[ -n "${option}" && "${option}" -ge 0 && "${option}" -lt "${#logfiles[@]}" ]]; then
|
||||
upload_log "${logfiles[${option}]}"
|
||||
upload_selection
|
||||
elif [[ "${option}" == "B" || "${option}" == "b" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user