Skip to content

Commit 3b9d610

Browse files
committed
use -exec instead of loop
1 parent 061ba36 commit 3b9d610

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Diff for: build.sh

+1-5
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,7 @@ function package() {
2828
cd "$CARGO_TARGET_DIR"/release
2929
(
3030
if [ -z "$BIN" ]; then
31-
for file in $(
32-
find -maxdepth 1 -executable -type f
33-
); do
34-
package "$file"
35-
done
31+
find -maxdepth 1 -executable -type f -exec package {} \;
3632
else
3733
package "$BIN"
3834
fi

0 commit comments

Comments
 (0)