mirror of
https://github.com/libretro/Lakka.git
synced 2025-02-17 14:29:31 +00:00
scripts/get: quote tests and some more variables
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
05be62afc2
commit
8ef2da565d
13
scripts/get
13
scripts/get
@ -2,7 +2,7 @@
|
||||
|
||||
. config/options $1
|
||||
|
||||
if [ -z $1 ]; then
|
||||
if [ -z "$1" ]; then
|
||||
for i in `find packages/ -type f -name meta`; do
|
||||
GET_PKG=`grep ^PKG_NAME= $i | sed -e "s,\",,g" -e "s,PKG_NAME=,,"`
|
||||
$SCRIPTS/get $GET_PKG
|
||||
@ -21,7 +21,7 @@ if [ -n "$PKG_URL" ]; then
|
||||
|
||||
mkdir -p $SOURCES/$1
|
||||
|
||||
if [ -f $STAMP ]; then
|
||||
if [ -f "$STAMP" ]; then
|
||||
[ `cat $STAMP` = "$i" ] && continue
|
||||
fi
|
||||
DL="yes"
|
||||
@ -33,12 +33,12 @@ if [ -n "$PKG_URL" ]; then
|
||||
printf "%${INDENT}c GET $1\n" >&$SILENT_OUT
|
||||
export INDENT=$((${INDENT:-1}+$INDENT_SIZE))
|
||||
|
||||
[ "$VERBOSE" != yes ] && WGET_OPT=-q
|
||||
[ "$VERBOSE" != "yes" ] && WGET_OPT=-q
|
||||
|
||||
NBWGET=1
|
||||
until [ -f $STAMP ] || wget --passive-ftp --no-check-certificate -c $WGET_OPT -P $SOURCES/$1 $i; do
|
||||
NBWGET="1"
|
||||
until [ -f "$STAMP" ] || wget --passive-ftp --no-check-certificate -c $WGET_OPT -P $SOURCES/$1 $i; do
|
||||
NBWGET=$(($NBWGET+1))
|
||||
if [ $NBWGET -gt 10 ]; then
|
||||
if [ "$NBWGET" -gt "10" ]; then
|
||||
echo -e "\nCant't get $1 sources : $i\n Try later !!"
|
||||
exit 1
|
||||
fi
|
||||
@ -52,4 +52,3 @@ if [ -n "$PKG_URL" ]; then
|
||||
|
||||
done
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user