aboutsummaryrefslogtreecommitdiff
path: root/projects/libreboot-release
diff options
context:
space:
mode:
Diffstat (limited to 'projects/libreboot-release')
-rw-r--r--[-rwxr-xr-x]projects/libreboot-release/install/libreboot-release18
1 files changed, 9 insertions, 9 deletions
diff --git a/projects/libreboot-release/install/libreboot-release b/projects/libreboot-release/install/libreboot-release
index b210d7d9..3dd85336 100755..100644
--- a/projects/libreboot-release/install/libreboot-release
+++ b/projects/libreboot-release/install/libreboot-release
@@ -50,8 +50,6 @@ download() {
local path
local url
- printf "Downloading $project\n"
-
for prefix in "$SYSTEMS/$MACHINE" "$IMAGES" "$TOOLS/$MACHINE"
do
ifs_save=$IFS
@@ -78,6 +76,8 @@ download() {
wget -O "$path.$SHA256SUM" "$url.$SHA256SUM"
wget -O "$path.$ASC" "$url.$ASC"
+ printf "\nDownloaded $project\n"
+
return 0
fi
done
@@ -95,14 +95,14 @@ sources() {
local url="$DOWNLOAD_URL/$SOURCES/$project/$project.$TAR_XZ"
local path="$root/$SOURCES/$project/$project.$TAR_XZ"
- printf "Downloading $project sources\n"
-
if wget --quiet --spider "$url"
then
- mkdir -p "$root/$project"
+ mkdir -p "$( dirname "$path" )"
wget -O "$path" "$url"
wget -O "$path.$SHA256SUM" "$url.$SHA256SUM"
wget -O "$path.$ASC" "$url.$ASC"
+
+ printf "\nDownloaded $project sources\n"
else
printf "Could not download $project sources from $DOWNLOAD_URL\n" >&2
return 1
@@ -120,8 +120,6 @@ verify() {
local directory
local path
- printf "Verifying $project\n"
-
for prefix in "$SYSTEMS/$MACHINE" "$IMAGES" "$TOOLS/$MACHINE"
do
ifs_save=$IFS
@@ -165,6 +163,8 @@ verify() {
printf "Could not verify $project signature!\n" >&2
fi
+ printf "\nVerified $project\n"
+
return 0
done
@@ -184,8 +184,6 @@ extract() {
local directory
local path
- printf "Extracting $project\n"
-
for prefix in "$SYSTEMS/$MACHINE" "$IMAGES" "$TOOLS/$MACHINE"
do
ifs_save=$IFS
@@ -219,6 +217,8 @@ extract() {
tar -xf "$path" -ps -C "$extract_path"
+ printf "Extracted $project\n"
+
return 0
done