From 2d1d1418b433d4356ab849543ecec12be196c7be Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Sun, 25 Feb 2018 18:02:39 +0100 Subject: [PATCH] improve release instructions --- release/rtool.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/release/rtool.py b/release/rtool.py index 171ce6b0c..25f37e61d 100755 --- a/release/rtool.py +++ b/release/rtool.py @@ -3,6 +3,7 @@ import contextlib import fnmatch import os +import sys import platform import re import runpy @@ -291,6 +292,10 @@ def homebrew_pr(): """ Create a new Homebrew PR """ + if platform.system() != "Darwin": + print("You need to run this on macOS to create a new Homebrew PR. Sorry.") + sys.exit(1) + print("Creating a new PR with Homebrew...") subprocess.check_call([ "brew",