diff --git a/hyper-v.changes b/hyper-v.changes index ae7a547..ebc0e40 100644 --- a/hyper-v.changes +++ b/hyper-v.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Nov 09 04:39:00 UTC 2014 - Led + +- fix bashisms in pre/post scripts + ------------------------------------------------------------------- Tue Sep 30 15:41:02 UTC 2014 - ohering@suse.de diff --git a/hyper-v.spec b/hyper-v.spec index 9849226..7955d28 100644 --- a/hyper-v.spec +++ b/hyper-v.spec @@ -247,8 +247,9 @@ ln -sfvbn ../../etc/init.d/%{hv_vss_daemon} $RPM_BUILD_ROOT${bindir}/rc%{hv_vss_ # move them to /var/lib and remove old directory, if possible. if test -d /var/opt/hyperv then - if mkdir -p -v -m 0755 /var/lib/hyperv && pushd /var/lib/hyperv > /dev/null + if mkdir -p -v -m 0755 /var/lib/hyperv then + cd /var/lib/hyperv for oldfile in /var/opt/hyperv/ifcfg-* /var/opt/hyperv/.kvp_pool_* do if test -e "${oldfile}" @@ -256,7 +257,7 @@ then mv -vfb "${oldfile}" . || : fi done - popd > /dev/null + cd - >/dev/null fi rmdir -v /var/opt/hyperv || : fi @@ -267,7 +268,7 @@ fi %post board_vendor= product_name= -if pushd /sys/class/dmi/id > /dev/null 2>/dev/null +if cd /sys/class/dmi/id 2>/dev/null then if test -r board_vendor then @@ -277,7 +278,7 @@ then then product_name="`cat product_name`" fi - popd > /dev/null + cd - >/dev/null fi if test "${board_vendor}" = "Microsoft Corporation" -a "${product_name}" = "Virtual Machine" then