From 88129397a4f4c714195d2a100b851ecf7d0b0e85 Mon Sep 17 00:00:00 2001 From: Thomas Bächler Date: Tue, 19 Nov 2013 23:10:27 +0100 Subject: mkinitcpio: Improve output when -d option is used. --- mkinitcpio | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/mkinitcpio b/mkinitcpio index 30cff6a..e927884 100755 --- a/mkinitcpio +++ b/mkinitcpio @@ -440,9 +440,7 @@ if (( _optshowautomods )); then cleanup 0 fi -if [[ -z $_optgenimg ]]; then - msg "Starting dry run: %s" "$KERNELVERSION" -else +if [[ $_optgenimg ]]; then # check for permissions. if the image doesn't already exist, # then check the directory if [[ ( -e $_optgenimg && ! -w $_optgenimg ) || @@ -456,6 +454,10 @@ else fi msg "Starting build: %s" "$KERNELVERSION" +elif [[ $_opttargetdir ]]; then + msg "Starting build: %s" "$KERNELVERSION" +else + msg "Starting dry run: %s" "$KERNELVERSION" fi # set functrace and trap to catch errors in add_* functions @@ -494,6 +496,8 @@ ldconfig -r "$BUILDROOT" &>/dev/null if [[ $_optgenimg ]]; then build_image "$_optgenimg" "$_optcompress" +elif [[ $_opttargetdir ]]; then + msg "Build complete." else msg "Dry run complete, use -g IMAGE to generate a real image" fi -- cgit v1.2.3-24-g4f1b