Browse Source

[PATCH 18/50] outfile processing can fit all on one line, so make it.

master
Victor Lowther 16 years ago committed by Dave Jones
parent
commit
95994c57c5
  1. 3
      dracut

3
dracut

@ -24,8 +24,7 @@ while (($# > 0)); do
done done


[[ $2 ]] && kernel=$2 || kernel=$(uname -r) [[ $2 ]] && kernel=$2 || kernel=$(uname -r)
[[ $1 ]] && outfile=$(readlink -f $1) || \ [[ $1 ]] && outfile=$(readlink -f $1) || outfile="/boot/initrd-$kernel.img"
outfile="/boot/initrd-$kernel.img"


if [[ -f $outfile && ! $force ]]; then if [[ -f $outfile && ! $force ]]; then
echo "Will not override existing initramfs ($outfile) without --force" echo "Will not override existing initramfs ($outfile) without --force"

Loading…
Cancel
Save