Skip to content

Commit

Permalink
fix(rust): more argument debug
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenj committed May 7, 2024
1 parent 10c9bdf commit b6bd675
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions earthly/rust/scripts/std_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,13 +257,14 @@ def main():
print(arg.endswith('"'))
print(len(processed_args)>0)
if len(processed_args)>0:
print(processed_args[:-1])
print('"' in processed_args[:-1])
if arg.endswith('"') and len(processed_args) > 0 and '"' in processed_args[:-1]:
processed_args[:-1] += " " + arg
print(processed_args[-1])
print('"' in processed_args[-1])
if arg.endswith('"') and len(processed_args) > 0 and '"' in processed_args[-1]:
processed_args[-1] += " " + arg
else:
processed_args.append(arg)

print("Processed args:"+str(processed_args))
# Replace sys.argv with the processed arguments
sys.argv = [sys.argv[0]] + processed_args

Expand Down

0 comments on commit b6bd675

Please sign in to comment.