BurtonQin / lockbud

Statically detect memory, concurrency bugs and possible panic locations for Rust.
BSD 3-Clause "New" or "Revised" License
445 stars 25 forks source link

On Mac OS: `lockbud/cargo_dir.txt: No such file or directory` #43

Open gitmalong opened 1 year ago

gitmalong commented 1 year ago
lockbud % ./detect.sh toys/conflict-inter
    Finished dev [unoptimized + debuginfo] target(s) in 0.06s
realpath: /Users/user/Documents/Code/lockbud/cargo_dir.txt: No such file or directory
usage: touch [-A [-][[hh]mm]SS] [-achm] [-r file] [-t [[CC]YY]MMDDhhmm[.SS]]
       [-d YYYY-MM-DDThh:mm:SS[.frac][tz]] file ...
./detect.sh: line 41: $cargo_dir_file: ambiguous redirect
./detect.sh: line 44: ${cargo_dir_file}: ambiguous redirect
BurtonQin commented 1 year ago

I do not have a MacOS env for now. The script is meant for Ubuntu. You may create an empty cargo_dir.xt manually and specify the absolute path to it on L32: cargo_dir_file=/PATH/TO/FILE