Fix missing then (#5400)

This commit is contained in:
Aleksandr Chebotov
2022-04-13 10:05:32 +02:00
committed by GitHub
parent 11d669e34b
commit 4f62f8e999

View File

@@ -25,7 +25,7 @@ function kcpasswordEncode {
#get padding by subtraction if under 11 #get padding by subtraction if under 11
local r=$(( ${#thisStringHex_array[@]} % 11 )) local r=$(( ${#thisStringHex_array[@]} % 11 ))
local padding=0 local padding=0
if [ ${#thisStringHex_array[@]} -eq 11 ]; if [ ${#thisStringHex_array[@]} -eq 11 ]; then
local padding=1 local padding=1
elif [ $r -gt 0 ]; then elif [ $r -gt 0 ]; then
local padding=$(( 11 - $r )) local padding=$(( 11 - $r ))