From f29c81c4142af7a1e70bd7fe5567f80466decc0f Mon Sep 17 00:00:00 2001
From: DemonWav <demonwav@gmail.com>
Date: Thu, 28 Sep 2017 17:52:05 -0500
Subject: [PATCH] Add clean command and fix critical script issue

---
 paper            | 6 ++++++
 scripts/remap.sh | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/paper b/paper
index d453a6f8e6..ba3a59c108 100755
--- a/paper
+++ b/paper
@@ -89,6 +89,12 @@ case "$1" in
     "s" | "server")
         cd "$basedir/Paper-Server"
     ;;
+    "c" | "clean")
+        rm -rf Paper-API
+        rm -rf Paper-Server
+        rm -rf work
+        echo "Cleaned build files"
+    ;;
     "e" | "edit")
         case "$2" in
             "s" | "server")
diff --git a/scripts/remap.sh b/scripts/remap.sh
index 26888cf5bd..04f48187c5 100755
--- a/scripts/remap.sh
+++ b/scripts/remap.sh
@@ -27,7 +27,7 @@ fi
 if [[ "$OSTYPE" == "darwin"* ]]; then
    shopt -s expand_aliases
    alias md5sum='md5 -r'
-   echo "Using an alias for md5sum on OS X"
+   echo "Using an alias for md5sum on macOS"
 fi
 
 checksum=$(md5sum "$jarpath.jar" | cut -d ' ' -f 1)