diff options
author | Leah Rowe <info@minifree.org> | 2017-07-25 15:35:08 +0000 |
---|---|---|
committer | Gogs <gogitservice@gmail.com> | 2017-07-25 15:35:08 +0000 |
commit | efe8ba32e9ae72ef73b21ae660dfbea19c0c26f4 (patch) | |
tree | 6dccef8195834623a9e7f996b0ffbc52b179a69a /libreboot | |
parent | 7e484f1be035b193f0be123746059a78ea69b199 (diff) | |
parent | 020e60707d88bfaf35aa0550cf662df12d639dc5 (diff) | |
download | librebootfr-efe8ba32e9ae72ef73b21ae660dfbea19c0c26f4.tar.gz librebootfr-efe8ba32e9ae72ef73b21ae660dfbea19c0c26f4.zip |
Merge branch 'libreboot-main-cleanup' of kragle/libreboot into master
Diffstat (limited to 'libreboot')
-rwxr-xr-x | libreboot | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -1,6 +1,7 @@ #!/usr/bin/env bash # Copyright (C) 2016 Paul Kocialkowski <contact@paulk.fr> +# Copyright (C) 2017 Andrew Robbins <contact@andrewrobbins.info> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -78,12 +79,12 @@ libreboot_project() { case "${action}" in 'sources') - ( - set +e - - project_action_arguments 'extract' "${project}" "$@" && return 0 - project_action_arguments 'download' "${project}" "$@" && return 0 - ) + if project_action_arguments 'extract' "${project}" "$@"; then + return + else + printf '\n%s\n\n' 'Attempting to download instead...' + project_action_arguments 'download' "${project}" "$@" + fi ;; 'produce') for action in 'build' 'install' 'release'; do |