From cbbf04c4750c4119f9f699e722f5be660dd8c0fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Santoro?= Date: Mon, 13 Nov 2017 13:56:41 +0000 Subject: [PATCH] Port shell script to POSIX sh The ui/update-all-references.sh is pretty standard, excepted for the arguments parsing part, which is ported to POSIX condition style. It so works with sh, which is more convenient, as it decreases the need to install bash on UNIX-like non-linux OS. --- src/test/ui/update-all-references.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/ui/update-all-references.sh b/src/test/ui/update-all-references.sh index ddd69c399a5c1..9fe04e308406f 100755 --- a/src/test/ui/update-all-references.sh +++ b/src/test/ui/update-all-references.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # # Copyright 2015 The Rust Project Developers. See the COPYRIGHT # file at the top-level directory of this distribution and at @@ -18,7 +18,7 @@ # # See all `update-references.sh`, if you just want to update a single test. -if [[ "$1" == "--help" || "$1" == "-h" || "$1" == "" || "$2" != "" ]]; then +if [ "$1" = "--help" ] || [ "$1" = "-h" ] || [ "$1" = "" ] || [ "$2" != "" ]; then echo "usage: $0 " echo "" echo "For example:"