From 92d204be44263151ae08b83ad9312aec8741ceb5 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Wed, 18 Mar 2015 14:44:21 +0100 Subject: [PATCH] completions: remove deprecated shell syntax. https://bugzilla.gnome.org/show_bug.cgi?id=744877#c21 --- data/completions/gst-inspect-1.0 | 2 +- data/completions/gst-launch-1.0 | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/data/completions/gst-inspect-1.0 b/data/completions/gst-inspect-1.0 index ebb4d62735..47c78af6ea 100644 --- a/data/completions/gst-inspect-1.0 +++ b/data/completions/gst-inspect-1.0 @@ -60,7 +60,7 @@ __inspect_main () then command="$var" fi - i=$[$i+1] + i=$(($i+1)) done if [[ "$command" == "--gst"* ]]; then diff --git a/data/completions/gst-launch-1.0 b/data/completions/gst-launch-1.0 index d481076eee..bb0dfe53e3 100644 --- a/data/completions/gst-launch-1.0 +++ b/data/completions/gst-launch-1.0 @@ -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