From 410b0cac2b97bd1c3522b4eca06f4938715fef6e Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Wed, 28 Dec 2016 21:15:24 +0100 Subject: libreboot-release: Print information messages after actions are done Signed-off-by: Paul Kocialkowski --- projects/libreboot-release/install/libreboot-release | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) mode change 100755 => 100644 projects/libreboot-release/install/libreboot-release (limited to 'projects') diff --git a/projects/libreboot-release/install/libreboot-release b/projects/libreboot-release/install/libreboot-release old mode 100755 new mode 100644 index b210d7d9..3dd85336 --- 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 -- cgit v1.2.3-70-g09d2