libreboot

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 410b0cac2b97bd1c3522b4eca06f4938715fef6e
parent 2a1ed538b57ae760657667d589c54b962151ebc6
Author: Paul Kocialkowski <contact@paulk.fr>
Date:   Wed, 28 Dec 2016 21:15:24 +0100

libreboot-release: Print information messages after actions are done

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>

Diffstat:
projects/libreboot-release/install/libreboot-release | 18+++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)

diff --git 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