From bfc767e567a142adce12a432470dfb34819a1a1b Mon Sep 17 00:00:00 2001 From: Emma <916253@users.noreply.github.com> Date: Mon, 29 Apr 2019 20:12:26 -0600 Subject: Remove trailing slash to fix macOS compatibility BSD utilities on macOS do not ignore trailing slashes in commands, which results in this script incorrectly copying files to /tools/agbcc, rather than the intended /tools/agbcc/include. Removing the trailing slash should prevent this from happening, and allow macOS users to use the tool as intended. --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 756c78a..829552c 100755 --- a/install.sh +++ b/install.sh @@ -7,7 +7,7 @@ if [ "$1" != "" ]; then mkdir -p $1/tools/agbcc/lib cp agbcc $1/tools/agbcc/bin/ cp old_agbcc $1/tools/agbcc/bin/ - cp -R libc/include/ $1/tools/agbcc/ #drop include, because we don't want include/include + cp -R libc/include $1/tools/agbcc/ #drop include, because we don't want include/include cp ginclude/* $1/tools/agbcc/include/ cp libgcc.a $1/tools/agbcc/lib/ cp libc.a $1/tools/agbcc/lib/ -- cgit v1.2.3