aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Boniface <joshua@boniface.me>2019-01-21 01:42:25 -0500
committerJoshua Boniface <joshua@boniface.me>2019-01-21 01:42:25 -0500
commit0dab69b5519499f7bee7d85188ebe5628957a507 (patch)
treeeaa20c61f5071fff9ab4d2467cfa11167688dc50
parentff4cbfc6df88d6cd505f93922739cb0d3cd7951e (diff)
Use basename for cross-platform operation
Trying to sed out the deployment/ failed on MacOS, so use the basename command instead for the same effect.
-rwxr-xr-xbuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/build b/build
index c2daddd84..b922cf72a 100755
--- a/build
+++ b/build
@@ -10,7 +10,7 @@ declare -a actions=( 'build' 'package' 'sign' 'publish' )
# The list of possible platforms, based on directories under 'deployment/'
declare -a platforms=( $(
- find deployment/ -maxdepth 1 -mindepth 1 -type d | sed 's/deployment\///' | sort
+ find deployment/ -maxdepth 1 -mindepth 1 -type d -exec basename {} \; | sort
) )
# The list of standard dependencies required by all build scripts; individual