Skip to content

Commit acc3b26

Browse files
authored
fix(cli): use logical OR instead of pipe in build-type condition (#250)
Line 154 used `|` (pipeline) where `||` (logical OR) was intended. The pipe caused `$DEBUG` to be silently ignored when determining whether to use Debug or Release build type. Fixes #238 Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
1 parent e1a34e0 commit acc3b26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

s2c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ fn_main() {
151151
fn_print_info "✅ Binaries download completed."
152152
elif [[ $must_build == true ]]; then
153153
fn_print_info "Found project structure, but not binaries. Build required."
154-
if [[ $DEBUG == true ]] | [[ $VERBOSE == true ]]; then
154+
if [[ $DEBUG == true ]] || [[ $VERBOSE == true ]]; then
155155
build_type=Debug
156156
else
157157
build_type=Release

0 commit comments

Comments
 (0)