Skip to content

Commit cbd66df

Browse files
committed
fix(template/15-rust): -p should not add --workspace as argument
1 parent 2aa38c5 commit cbd66df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/15-rust.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ build_rust_build() {
9494
abinfo 'Using fallback build method ...'
9595
parsed_flags="$(getopt -o ':p' -- "${CARGO_AFTER[@]}" || true)"
9696
parsed_flags=(${parsed_flags})
97-
if [[ "${parsed_flags}" = '-p' ]]; then
97+
if [[ "${parsed_flags}" != '-p' ]]; then
9898
DEFAULT_CARGO_CONFIG+=('--workspace')
9999
fi
100100
cargo build "${DEFAULT_CARGO_CONFIG[@]}" \

0 commit comments

Comments
 (0)