diff options
author | Emma <916253@users.noreply.github.com> | 2019-04-29 20:12:26 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-29 20:12:26 -0600 |
commit | bfc767e567a142adce12a432470dfb34819a1a1b (patch) | |
tree | 3a1d7e9841c3bc4452df752fa636c6747ca27b4e | |
parent | e1d67efda609d2997eb78259ecf88e2fcf3209c1 (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-x | install.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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/ |