mirror of
https://github.com/libretro/libretro-super
synced 2025-02-04 15:40:07 +00:00
libretro-buildbot-recipe.sh: Fix build script failures if the recipe files have extra whitespaces.
Bash will swallow extra white spaces if a $variable is not quoted, but if it is quoted than cut will trip on the extra white space in the "$variable". This change works around the use of cut and thus avoids this issue altogether.
This commit is contained in:
parent
bc8cfe7129
commit
0ce1996809
@ -797,11 +797,11 @@ while read line; do
|
||||
|
||||
ARGS=""
|
||||
|
||||
for number in {10..30}; do
|
||||
TEMP="$(echo "$line" | cut -f "$number" -d " ")"
|
||||
if [ -n "${TEMP}" ]; then
|
||||
ARGS="${ARGS} ${TEMP}"
|
||||
fi
|
||||
eval "set -- \$line"
|
||||
shift 9
|
||||
while [ $# -gt 0 ]; do
|
||||
ARGS="${ARGS} ${1}"
|
||||
shift
|
||||
done
|
||||
|
||||
ARGS="${ARGS# }"
|
||||
@ -938,11 +938,11 @@ buildbot_pull(){
|
||||
|
||||
ARGS=""
|
||||
|
||||
for number in {9..14}; do
|
||||
TEMP="$(echo "$line" | cut -f "$number" -d " ")"
|
||||
if [ -n "${TEMP}" ]; then
|
||||
ARGS="${ARGS} ${TEMP}"
|
||||
fi
|
||||
eval "set -- \$line"
|
||||
shift 8
|
||||
while [ $# -gt 0 ]; do
|
||||
ARGS="${ARGS} ${1}"
|
||||
shift
|
||||
done
|
||||
|
||||
ARGS="${ARGS# }"
|
||||
|
Loading…
x
Reference in New Issue
Block a user