From 3fba2109feb92738844cd5174f31cd3d9dd231cf Mon Sep 17 00:00:00 2001 From: Steven Koo Date: Fri, 22 Apr 2022 19:07:32 -0500 Subject: tools: package_source remove double bracket Fixes syntax issues when running on Ubuntu Signed-off-by: Steven Koo --- tools/package_source.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/package_source.sh b/tools/package_source.sh index 181a056f6..b202fba6e 100755 --- a/tools/package_source.sh +++ b/tools/package_source.sh @@ -15,7 +15,7 @@ echo_help () { echo "-f/--fpganame Specifies fpga package name. If unspecified, '_fpga' gets appended to provided name" } -while [[ $# -gt 0 ]] +while [ $# -gt 0 ] do key="$1" @@ -46,17 +46,17 @@ case $key in esac done -if [[ -z "$UHD_ROOTDIR" ]]; then +if [ -z "$UHD_ROOTDIR" ]; then UHD_ROOTDIR='..' fi echo "Root Dir: "$UHD_ROOTDIR -if [[ -z "$UHD_TARNAME" ]]; then +if [ -z "$UHD_TARNAME" ]; then echo_help exit 1 fi -if [[ -z "$UHD_TARFPGANAME" ]]; then +if [ -z "$UHD_TARFPGANAME" ]; then UHD_TARFPGANAME="${UHD_TARNAME}_fpga" fi -- cgit v1.2.3