From 4818ca4ff1c7e93e37fd5723cad4196d8c1edeb6 Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Fri, 3 Mar 2017 11:33:10 -0500 Subject: [PATCH] Simplify variable to 1 line We can achieve the same result with a 1 liner vs the 4 lines it was. Change-Id: I42a0436912bf56afc70884f88dac059b54ae5eb0 Signed-off-by: Thanh Ha --- scripts/check-unicode.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/check-unicode.sh b/scripts/check-unicode.sh index cb0af7215..ab20a3ec3 100755 --- a/scripts/check-unicode.sh +++ b/scripts/check-unicode.sh @@ -13,10 +13,7 @@ # Thanh Ha (The Linux Foundation) - Initial implementation ############################################################################## -directory="." -if [ ! -z "$1" ]; then - directory="$1" -fi +directory=${1:-"."} echo "Scanning $directory" while IFS= read -r -d '' x -- 2.36.6