From 9cf30ed1892a65908d98ca18a714657c5621342e Mon Sep 17 00:00:00 2001 From: Joanna Rutkowska Date: Fri, 18 Jun 2010 01:48:18 +0200 Subject: [PATCH] appvm,netvm spec: Fix [ -e fstab ] conditional in %pre --- rpm_spec/core-appvm.spec | 4 +++- rpm_spec/core-netvm.spec | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/rpm_spec/core-appvm.spec b/rpm_spec/core-appvm.spec index c446fc3b..0a1b6d3f 100644 --- a/rpm_spec/core-appvm.spec +++ b/rpm_spec/core-appvm.spec @@ -44,7 +44,9 @@ The Qubes core files for installation inside a Qubes AppVM. %pre mkdir -p $RPM_BUILD_ROOT/var/lib/qubes -[ -e $RPM_BUILD_ROOT/etc/fstab ] && mv $RPM_BUILD_ROOT/etc/fstab $RPM_BUILD_ROOT/var/lib/qubes/fstab.orig +if [ -e $RPM_BUILD_ROOT/etc/fstab ] ; then +mv $RPM_BUILD_ROOT/etc/fstab $RPM_BUILD_ROOT/var/lib/qubes/fstab.orig +fi %build make clean all diff --git a/rpm_spec/core-netvm.spec b/rpm_spec/core-netvm.spec index 7d96f014..b7d3df5e 100644 --- a/rpm_spec/core-netvm.spec +++ b/rpm_spec/core-netvm.spec @@ -42,7 +42,10 @@ The Qubes core files for installation inside a Qubes NetVM. %pre mkdir -p $RPM_BUILD_ROOT/var/lib/qubes -[ -e $RPM_BUILD_ROOT/etc/fstab ] && mv $RPM_BUILD_ROOT/etc/fstab $RPM_BUILD_ROOT/var/lib/qubes/fstab.orig +if [ -e $RPM_BUILD_ROOT/etc/fstab ] ; then +mv $RPM_BUILD_ROOT/etc/fstab $RPM_BUILD_ROOT/var/lib/qubes/fstab.orig +fi + %build