aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Koo <steven.koo@ni.com>2022-04-22 19:07:32 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2022-06-10 13:24:04 -0500
commit3fba2109feb92738844cd5174f31cd3d9dd231cf (patch)
treea5ab62987f5df8d0764bd669a9aab5b5e7031690
parentb50e7c7fcdead9ec500fe3cf518e0a99463a2d73 (diff)
downloaduhd-3fba2109feb92738844cd5174f31cd3d9dd231cf.tar.gz
uhd-3fba2109feb92738844cd5174f31cd3d9dd231cf.tar.bz2
uhd-3fba2109feb92738844cd5174f31cd3d9dd231cf.zip
tools: package_source remove double bracket
Fixes syntax issues when running on Ubuntu Signed-off-by: Steven Koo <steven.koo@ni.com>
-rwxr-xr-xtools/package_source.sh8
1 files 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