summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmma <916253@users.noreply.github.com>2019-04-29 20:12:26 -0600
committerGitHub <noreply@github.com>2019-04-29 20:12:26 -0600
commitbfc767e567a142adce12a432470dfb34819a1a1b (patch)
tree3a1d7e9841c3bc4452df752fa636c6747ca27b4e
parente1d67efda609d2997eb78259ecf88e2fcf3209c1 (diff)
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.
-rwxr-xr-xinstall.sh2
1 files changed, 1 insertions, 1 deletions
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/