]> git.pld-linux.org Git - packages/VirtualBox.git/commitdiff
- use 'EOF' (no interpolation); tabs
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 13 Mar 2007 17:13:54 +0000 (17:13 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    VirtualBox.spec -> 1.14

VirtualBox.spec

index 9c7f457849d20204a0d950e730d14cc4a55bbdaf..bf76135e43b653b0620e48257eff93f00cfe7e55 100644 (file)
@@ -202,23 +202,23 @@ install -d \
        $RPM_BUILD_ROOT%{_libdir}/VirtualBox \
        $RPM_BUILD_ROOT/etc/rc.d/init.d
 
-cat > VBox.sh << EOF
+cat > VBox.sh <<'EOF'
 #!/bin/sh
 
 if [ ! -c /dev/vboxdrv ]; then
-    echo "Special character device /dev/vboxdrv doesn't exists!"
-    echo "Check your installation and if vboxdrv kernel module is loaded."
-    exit 1
+       echo "Special character device /dev/vboxdrv doesn't exists!"
+       echo "Check your installation and if vboxdrv kernel module is loaded."
+       exit 1
 fi
 
 if [ ! -w /dev/vboxdrv ]; then
-    echo "You don't have write access to /dev/vboxdrv!"
-    echo "Correct this situation or contact with your system administrator."
-    exit 1
+       echo "You don't have write access to /dev/vboxdrv!"
+       echo "Correct this situation or contact with your system administrator."
+       exit 1
 fi
 
-BINFILE=\`basename \$0\`
-LD_LIBRARY_PATH=%{_libdir}/VirtualBox %{_libdir}/VirtualBox/\$BINFILE \$@
+BINFILE=$(basename "$0")
+LD_LIBRARY_PATH=%{_libdir}/VirtualBox %{_libdir}/VirtualBox/$BINFILE ${1:+"$@"}
 EOF
 
 for f in {VBox{BFE,Manage,SDL,SVC,XPCOMIPCD},VirtualBox}
This page took 0.029242 seconds and 4 git commands to generate.