From c78bea41c6a6dc6c338ddfc4a4fb9d140ecb40f0 Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Tue, 16 Oct 2018 14:28:26 +0100 Subject: [PATCH] Fix issue with sort_api.sh Should use -ne not -neq. Test: run script manually Bug: 115609023 Change-Id: I337ed43be1f9250e6c2b2c88d97c68a5c9e8941c --- tools/hiddenapi/sort_api.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/hiddenapi/sort_api.sh b/tools/hiddenapi/sort_api.sh index 7cdcf18bb3fc5..710da40585ac2 100755 --- a/tools/hiddenapi/sort_api.sh +++ b/tools/hiddenapi/sort_api.sh @@ -21,6 +21,6 @@ A=( $(uniq <<< "${A[*]}") ) A=( ${C[*]} ${A[*]} ) unset IFS # Dump array back into the file -if [ ${#A[@]} -neq 0 ]; then +if [ ${#A[@]} -ne 0 ]; then printf '%s\n' "${A[@]}" > "$dest_list" fi