bin/get-pick-list.sh: fix redirection in sh
authorAndres Gomez <agomez@igalia.com>
Fri, 11 Jan 2019 14:43:27 +0000 (16:43 +0200)
committerAndres Gomez <agomez@igalia.com>
Mon, 14 Jan 2019 15:40:15 +0000 (17:40 +0200)
"&>" is bash specific.

Fixes: e0dbfc99537 ("bin/get-pick-list.sh: warn when commit lists invalid sha")
Cc: Juan A. Suarez <jasuarez@igalia.com>
Cc: Eric Engestrom <eric.engestrom@intel.com>
Cc: Dylan Baker <dylan@pnwbakers.com>
Cc: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Andres Gomez <agomez@igalia.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Juan A. Suarez <jasuarez@igalia.com>
bin/get-pick-list.sh

index e7a2d0dce406ed968d9a56f3145a9ff874705506..15f0e7d4a34b363bc0a35552fff0b6a39b6a667d 100755 (executable)
@@ -44,7 +44,7 @@ is_sha_nomination()
                # Treat only the current line
                id=`echo "$fixes" | tail -n $fixes_count | head -n 1 | cut -d : -f 2`
                fixes_count=$(($fixes_count-1))
-               if ! git show $id &>/dev/null; then
+               if ! git show $id >/dev/null 2>&1; then
                        echo WARNING: Commit $1 lists invalid sha $id
                fi
        done