diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2016-12-28 21:15:24 +0100 |
---|---|---|
committer | Leah Rowe <info@minifree.org> | 2017-01-15 14:24:47 +0000 |
commit | 410b0cac2b97bd1c3522b4eca06f4938715fef6e (patch) | |
tree | 99f456a7fe34b8478faea5e114c51cea88226622 /projects/libreboot-release | |
parent | 2a1ed538b57ae760657667d589c54b962151ebc6 (diff) | |
download | librebootfr-410b0cac2b97bd1c3522b4eca06f4938715fef6e.tar.gz librebootfr-410b0cac2b97bd1c3522b4eca06f4938715fef6e.zip |
libreboot-release: Print information messages after actions are done
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'projects/libreboot-release')
-rw-r--r--[-rwxr-xr-x] | projects/libreboot-release/install/libreboot-release | 18 |
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 |