summaryrefslogtreecommitdiff
path: root/xibuild/build_package.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-02-23 14:07:22 +0000
committerdavidovski <david@davidovski.xyz>2022-02-23 14:07:22 +0000
commita0711a7be35f6efc10d23169e22a73e38cff1e90 (patch)
tree8bafdb0eb8d809e7d279b269953ba4e48a6862a3 /xibuild/build_package.sh
parenteafdfcf7020757b12651a71660f2e1a12af7bc97 (diff)
made all scripts posix compliant
Diffstat (limited to 'xibuild/build_package.sh')
-rwxr-xr-xxibuild/build_package.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/xibuild/build_package.sh b/xibuild/build_package.sh
index 7152464..f81f6b8 100755
--- a/xibuild/build_package.sh
+++ b/xibuild/build_package.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
GREEN="\033[0;32m"
BLUE="\033[0;34m"
@@ -78,9 +78,10 @@ fetch_source () {
fi
fi
+ set -- ${ADDITIONAL}
# download additional files
- if [ ! -z ${ADDITIONAL} ]; then
- for url in ${ADDITIONAL[*]}; do
+ if [ "$#" != 0 ]; then
+ for url in $@; do
local name=$(basename $url)
curl -SsL $url > $src_dir/$name
done