From fc5620fcfa6bc3630d2b95d8691921c7cf4242dd Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Mon, 1 Jul 2013 20:51:33 +0100 Subject: [PATCH] minor changes to allow sources on network share --- build-devkit.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build-devkit.sh b/build-devkit.sh index 8fcb888..4d992db 100755 --- a/build-devkit.sh +++ b/build-devkit.sh @@ -62,7 +62,7 @@ function extract_and_patch { echo "invalid archive type" exit 1 fi - tar $extractflags $SRCDIR/$1-$2$archivetype || { echo "Error extracting "$1; exit 1; } + tar $extractflags "$SRCDIR/$1-$2$archivetype" || { echo "Error extracting "$1; exit 1; } touch extracted-$1 fi if [[ ! -f patched-$1 && -f $patchdir/$1-$2.patch ]]; then @@ -217,7 +217,7 @@ else SRCDIR=`pwd` fi -cd $SRCDIR +cd "$SRCDIR" for archive in $archives $targetarchives $hostarchives do echo $archive @@ -242,13 +242,13 @@ do echo $destdir if [ ! -d $destdir ]; then mkdir -p $destdir - bzip2 -cd $SRCDIR/$archive | tar -xf - -C $destdir || { echo "Error extracting "$archive; exit 1; } + bzip2 -cd "$SRCDIR/$archive" | tar -xf - -C $destdir || { echo "Error extracting "$archive; exit 1; } fi done for archive in $hostarchives do - tar -xjf $SRCDIR/$archive + tar -xjf "$SRCDIR/$archive" done #---------------------------------------------------------------------------------