diff --git a/Sources/ZolangCore/Frontend/Models/Nodes/Expression.swift b/Sources/ZolangCore/Frontend/Models/Nodes/Expression.swift index 1c5bde5..a52e458 100644 --- a/Sources/ZolangCore/Frontend/Models/Nodes/Expression.swift +++ b/Sources/ZolangCore/Frontend/Models/Nodes/Expression.swift @@ -556,6 +556,8 @@ public indirect enum Expression: Node { } } return true + default: + fatalError("Uh oh something went wrong!") } } } diff --git a/Sources/ZolangCore/Zolang.swift b/Sources/ZolangCore/Zolang.swift index a1f4ff4..faf652b 100644 --- a/Sources/ZolangCore/Zolang.swift +++ b/Sources/ZolangCore/Zolang.swift @@ -65,7 +65,7 @@ public final class Zolang { self.arguments = arguments } - public func help() { + func help() { Log.ascii() Log.info("Thanks for using Zolang \(Zolang.version)") Log.plain(Zolang.help) diff --git a/build-to-bin.sh b/build-to-bin.sh index b89a068..c052957 100755 --- a/build-to-bin.sh +++ b/build-to-bin.sh @@ -1,6 +1,3 @@ #!/bin/sh -swift build -c release -Xswiftc -static-stdlib -cd .build/release -cp -f Zolang /usr/local/bin/zolang -cd .. -cd .. +swift build -c release +sudo cp -f .build/release/Zolang /usr/local/bin/zolang