diff --git a/scripts/recipe-qa.sh b/scripts/recipe-qa.sh index cb6db00..6124512 100755 --- a/scripts/recipe-qa.sh +++ b/scripts/recipe-qa.sh @@ -9,7 +9,7 @@ function validate_url() local recipe=$1 local url=$2 - local schema=`echo $url | cut -c 1-6` + local schema=$(echo $url | cut -c 1-6) if [ $schema != "https:" ]; then echo "Warning: $url in $recipe is not using SSL." fi @@ -20,12 +20,12 @@ function validate_url() fi } -for r in `find -name *.inc -o -name *.bb`; do - if ! [ -z "`egrep '/usr|/etc' $r`" ]; then +for r in $(find -name *.inc -o -name *.bb); do + if ! [ -z "$(egrep '/usr|/etc' $r)" ]; then echo "ERROR: $r uses hard-coded paths." fi - url=`cat $r | grep HOMEPAGE | sed -e 's,HOMEPAGE\s*?=\s*\"\(.*\)\",\1,'` + url=$(cat $r | grep HOMEPAGE | sed -e 's,HOMEPAGE\s?\?=\s"\(.*\)",\1,') if ! [ -z "$url" ]; then validate_url "$r" "$url" fi