소스 검색

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.
Joshua Boniface 6 년 전
부모
커밋
0dab69b551
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      build

+ 1 - 1
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