OSDN Git Service

[change] : functions one liner
authorhayao <shun819.mail@gmail.com>
Fri, 24 Jul 2020 12:55:03 +0000 (21:55 +0900)
committerhayao <shun819.mail@gmail.com>
Fri, 24 Jul 2020 12:55:03 +0000 (21:55 +0900)
build.sh

index 9d395a0..c94ec33 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -1590,9 +1590,7 @@ show_settings
 run_once make_pacman_conf
 run_once make_basefs
 run_once make_packages
-if [[ "${noaur}" = false ]]; then
-    run_once make_packages_aur
-fi
+[[ "${noaur}" = false ]] && run_once make_packages_aur
 run_once make_customize_airootfs
 run_once make_setup_mkinitcpio
 run_once make_boot
@@ -1601,13 +1599,7 @@ run_once make_syslinux
 run_once make_isolinux
 run_once make_efi
 run_once make_efiboot
-if [[ "${tarball}" = true ]]; then
-    run_once make_tarball
-fi
-if [ "${noiso}" = false ]; then
-    run_once make_prepare
-    run_once make_iso
-fi
-if [[ ${cleaning} = true ]]; then
-    remove_work
-fi
+[[ "${tarball}" = true ]] && run_once make_tarball
+[[ "${noiso}" = false ]] && run_once make_prepare
+[[ "${noiso}" = false ]] && run_once make_iso
+[[ ${cleaning} = true ]] && remove_work