Skip to content

Commit

Permalink
Allow multiple arguments to %cargo_install
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Staudinger <[email protected]>
  • Loading branch information
Staudey authored and joebonrichie committed Sep 15, 2024
1 parent 56037dc commit c7074c2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ypkg2/rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,10 @@ actions:
--config profile.release.strip=\"none\"
- cargo_install: |
cargo_install(){
if [ $# -eq 1 ]; then
install -Dm00755 target/release/"$1" $installdir/usr/bin/"$1"
if [ $# -gt 0 ]; then
for binary in "$@"; do
install -Dm00755 target/release/"$binary" $installdir/usr/bin/"$binary"
done
else
install -Dm00755 target/release/"$package" $installdir/usr/bin/"$package"
fi
Expand Down

0 comments on commit c7074c2

Please sign in to comment.