mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-25 22:46:27 +02:00
Merge pull request #325 from Brikaa/vlang
pkg(vlang-0.1.13): Fix command line arguments bug
This commit is contained in:
commit
036b90d9ef
1 changed files with 4 additions and 3 deletions
7
packages/vlang/0.1.13/run
vendored
7
packages/vlang/0.1.13/run
vendored
|
@ -6,8 +6,9 @@ export TMPDIR="$PWD"
|
|||
|
||||
# Put instructions to run the runtime
|
||||
|
||||
rename 's/$/\.v/' "$@" # Add .v extension
|
||||
filename=$1
|
||||
|
||||
rename 's/$/\.v/' $filename # Add .v extension
|
||||
|
||||
filename=$1.v
|
||||
shift
|
||||
v run $filename "$@"
|
||||
v run $filename.v "$@"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue