completions: remove deprecated shell syntax.
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Wed, 18 Mar 2015 13:44:21 +0000 (14:44 +0100)
committerMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Tue, 24 Mar 2015 18:11:31 +0000 (19:11 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=744877#c21

data/completions/gst-inspect-1.0
data/completions/gst-launch-1.0

index ebb4d62..47c78af 100644 (file)
@@ -60,7 +60,7 @@ __inspect_main ()
                        then
                                command="$var"
                        fi
-               i=$[$i+1]
+               i=$(($i+1))
                done
 
        if [[ "$command" == "--gst"* ]]; then
index d481076..bb0dfe5 100644 (file)
@@ -65,7 +65,7 @@ _gst_launch_main ()
                        then
                                command="$var"
                        fi
-               i=$[$i+1]
+               i=$(($i+1))
                done
 
        i=1
@@ -76,7 +76,7 @@ _gst_launch_main ()
 
                        if [[ "$var" == "--"* ]]
                        then
-                               i=$[$i+1]
+                               i=$(($i+1))
                                continue
                        fi
 
@@ -86,7 +86,7 @@ _gst_launch_main ()
                                previous_element="$var"
                                have_previous_element=1
                        fi
-               i=$[$i+1]
+               i=$(($i+1))
                done
 
        if [[ "$command" == "--gst"* ]]; then