From: Thanh Ha Date: Fri, 3 Mar 2017 16:33:10 +0000 (-0500) Subject: Simplify variable to 1 line X-Git-Tag: release/boron-sr3~143^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;ds=sidebyside;h=4818ca4ff1c7e93e37fd5723cad4196d8c1edeb6;p=releng%2Fbuilder.git 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 --- 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