Re: [PATCH 1/2] account for arch==i686

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> @@ -245,7 +247,7 @@
>  		firstaidkit firstaidkit-plugin-passwd firstaidkit-plugin-xserver
>  		firstaidkit-gui firstaidkit-plugin-mdadm-conf firstaidkit-plugin-key-recovery volume_key"
>  
> -if [ $ARCH = i386 -o $ARCH = i586 -o $ARCH = x86_64 ]; then
> +if [ $ARCH = i386 -o $ARCH = i586 -o $ARCH = i686 -o $ARCH = x86_64 ]; then
>    PACKAGESRESCUE="$PACKAGESRESCUE gpart grub firstaidkit-plugin-grub"
>  fi
>  

It'd be really nice if all these things could get rewritten into
constructions like:

if [[ $ARCH =~ 'i[356]86' || $ARCH == 'x86_64']]; then
...

That looks a lot cleaner to me than the ever increasing line of
conditionals.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux