]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
[PATCH 18/50] outfile processing can fit all on one line, so make it.
authorVictor Lowther <victor.lowther@gmail.com>
Fri, 13 Feb 2009 12:42:13 +0000 (04:42 -0800)
committerDave Jones <davej@redhat.com>
Mon, 16 Feb 2009 18:56:41 +0000 (13:56 -0500)
dracut

diff --git a/dracut b/dracut
index ae53caf3edebc3fd9c98aba9980a527d30f3f8d4..84abdb5e38e631728df3c5943b245179e673293b 100755 (executable)
--- a/dracut
+++ b/dracut
@@ -24,8 +24,7 @@ while (($# > 0)); do
 done
 
 [[ $2 ]] && kernel=$2 || kernel=$(uname -r)
-[[ $1 ]] && outfile=$(readlink -f $1) || \
-    outfile="/boot/initrd-$kernel.img"
+[[ $1 ]] && outfile=$(readlink -f $1) || outfile="/boot/initrd-$kernel.img"
 
 if [[ -f $outfile && ! $force ]]; then
     echo "Will not override existing initramfs ($outfile) without --force"