diff options
| author | Yuval Adam <yuv.adm@gmail.com> | 2014-12-13 13:26:23 +0100 |
|---|---|---|
| committer | Yuval Adam <yuv.adm@gmail.com> | 2014-12-13 13:26:23 +0100 |
| commit | a836accc07c1c655272c02d02f26c872548ec7a8 (patch) | |
| tree | c27b75b39828952c69a5e28c15cb7c1a6b287b93 | |
| parent | ae1c0eaaf2d42d67fdfa73d9205603a3aaf04cbd (diff) | |
Fix archiso check
| -rwxr-xr-x | liveusb/build.sh | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/liveusb/build.sh b/liveusb/build.sh index 850e002..289f21c 100755 --- a/liveusb/build.sh +++ b/liveusb/build.sh @@ -111,6 +111,7 @@ make_iso() { mkarchiso -v -w "${work_dir}" -D "${install_dir}" -L "${iso_label}" -o "${out_dir}" iso "${iso_name}-${arch}.iso" } +(pacman -Qq archiso > /dev/null) || (echo "This script requires archiso(-git) to be installed"; _usage 1) if [[ ${EUID} -ne 0 ]]; then echo "This script must be run as root." _usage 1 @@ -119,11 +120,6 @@ if [[ ${arch} != x86_64 ]]; then echo "This script needs to be run on x86_64" _usage 1 fi -if [[ $(pacman -Q archiso) -ne 0 ]]; then - echo "This script requires archiso(-git) to be installed" - _usage 1 -fi - while getopts 'th' arg; do case "${arg}" in |
