[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase
From:       Adriaan de Groot <groot () kde ! org>
Date:       2005-03-17 10:27:09
Message-ID: 20050317102709.214CB16F45 () office ! kde ! org
[Download RAW message or body]

CVS commit by adridg: 

/bin/sh is not bash


  M +16 -16    startkde   1.156


--- kdebase/startkde  #1.155:1.156
@@ -96,16 +96,16 @@
     for scrn in 0 1 2 3; do
         args=
-        width="kcmrandrrc_screen${scrn}_width"
-        height="kcmrandrrc_screen${scrn}_height"
-        if test -n "${!width}" -a -n "${!height}"; then
-            args="$args -s ${!width}x${!height}"
-        fi
-        refresh="kcmrandrrc_screen${scrn}_refresh"
-        if test -n "${!refresh}"; then
-            args="$args -r ${!refresh}"
-        fi
-        rotation="kcmrandrrc_screen${scrn}_rotation"
-        if test -n "${!rotation}"; then
-            case "${!rotation}" in
+        width="\$kcmrandrrc_screen${scrn}_width" ; eval "width=$width"
+        height="\$kcmrandrrc_screen${scrn}_height" ; eval "height=$height"
+        if test -n "${width}" -a -n "${height}"; then
+            args="$args -s ${width}x${height}"
+        fi
+        refresh="\$kcmrandrrc_screen${scrn}_refresh" ; eval "refresh=$refresh"
+        if test -n "${refresh}"; then
+            args="$args -r ${refresh}"
+        fi
+        rotation="\$kcmrandrrc_screen${scrn}_rotation" ; eval "rotation=$rotation"
+        if test -n "${rotation}"; then
+            case "${rotation}" in
                 0)
                     args="$args -o 0"
@@ -122,10 +122,10 @@
             esac
         fi
-        reflectx="kcmrandrrc_screen${scrn}_reflectx"
-        if test "${!refrectx}" = "true"; then
+        reflectx="\$kcmrandrrc_screen${scrn}_reflectx" ; eval "reflectx=$reflectx"
+        if test "${refrectx}" = "true"; then
             args="$args -x"
         fi
-        reflecty="kcmrandrrc_screen${scrn}_reflecty"
-        if test "${!refrecty}" = "true"; then
+        reflecty="\$kcmrandrrc_screen${scrn}_reflecty" ; eval "reflecty=$reflecty"
+        if test "${refrecty}" = "true"; then
             args="$args -y"
         fi


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic