diff --git a/scripts/build_debian_base_system.sh b/scripts/build_debian_base_system.sh index e8c5ab42fe..63eb7555fe 100755 --- a/scripts/build_debian_base_system.sh +++ b/scripts/build_debian_base_system.sh @@ -63,14 +63,18 @@ mkdir -p $ARCHIEVES mkdir -p $APTLIST mkdir -p $TARGET_DEBOOTSTRAP PACKAGES=$(sed -E 's/=(=[^=]*)$/\1/' $BASE_VERSIONS) -URL_ARR=($(apt-get download --print-uris $PACKAGES | cut -d" " -f1 | tr -d "'")) +URL_ARR=$(apt-get download --print-uris $PACKAGES | cut -d" " -f1 | tr -d "'") PACKAGE_ARR=($PACKAGES) LENGTH=${#PACKAGE_ARR[@]} for ((i=0;i&1 + exit 1 + fi filename=$(basename "$url") SKIP_BUILD_HOOK=y wget $url -P $ARCHIEVES echo $packagename >> $DEBOOTSTRAP_REQUIRED