We can achieve the same result with a 1 liner vs the 4 lines it was.
Change-Id: I42a0436912bf56afc70884f88dac059b54ae5eb0
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
# Thanh Ha (The Linux Foundation) - Initial implementation
##############################################################################
# Thanh Ha (The Linux Foundation) - Initial implementation
##############################################################################
-directory="."
-if [ ! -z "$1" ]; then
- directory="$1"
-fi
echo "Scanning $directory"
while IFS= read -r -d '' x
echo "Scanning $directory"
while IFS= read -r -d '' x