From c57942c69344c8ddca3b8a9861c1f98e55426403 Mon Sep 17 00:00:00 2001 From: Linus Gasser Date: Fri, 14 May 2021 09:03:20 +0200 Subject: [PATCH] using perl-pie instead of sed-i, so that macos can compile, too --- switch-gomobile.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/switch-gomobile.sh b/switch-gomobile.sh index be90765..e7e0d0f 100755 --- a/switch-gomobile.sh +++ b/switch-gomobile.sh @@ -1,5 +1,5 @@ #!/bin/sh -sed -i "s/^\/\/package cwtch/package cwtch/" lib.go -sed -i "s/^package main/\/\/package main/" lib.go -sed -i "s/^func main()/\/\/func main()/" lib.go +perl -pi -e "s/^\/\/package cwtch/package cwtch/" lib.go +perl -pi -e "s/^package main/\/\/package main/" lib.go +perl -pi -e "s/^func main()/\/\/func main()/" lib.go