Skip to content

Commit 7feca77

Browse files
authored
Fix conditional statement for Ubuntu
Running on a clean Ubuntu 16.10 install, the current script will result in an error: `RUNME.sh: 19: [: y: unexpected operator`. This fixes it. I tested a similar command on Mac (outside of this repo) to ensure it still works, and had no problems.
1 parent a536d38 commit 7feca77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

third_party/RUNME.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
#
1717
printf "\033c"
1818
read -p "Would you like to download swift-protobuf / grpc [y/N]" CONDITION;
19-
if [ "$CONDITION" == "y" ] ; then
19+
if [ "$CONDITION" = "y" ] ; then
2020
read -p "Use last known stable swift-protobuf - 0.9.903 ? or latest master ? [S/l] " CONDITION;
21-
if [ "$CONDITION" == "l" ] ; then
21+
if [ "$CONDITION" = "l" ] ; then
2222
git clone https://github.com/apple/swift-protobuf.git
2323
else
2424
git clone -b 0.9.903 https://github.com/apple/swift-protobuf.git

0 commit comments

Comments
 (0)