File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,16 @@ do-run() {
5
5
6
6
local -a args=()
7
7
for arg; do case " $arg " in
8
+ --)
9
+ shift
10
+ break
11
+ ;;
8
12
-* )
9
13
bprint.die " Flag '$arg ' not recognized"
10
14
;;
11
15
* )
12
16
args+=(" $arg " )
17
+ shift
13
18
;;
14
19
esac done
15
20
@@ -28,7 +33,7 @@ do-run() {
28
33
for bin_file in " $bin_dir " /* ; do
29
34
if [ -f " $bin_file " ] && [ -x " $bin_file " ]; then
30
35
util.deinit
31
- exec " $bin_file "
36
+ exec " $bin_file " " $@ "
32
37
elif [ -f " $bin_file " ]; then
33
38
bprint.die " File '$bin_name ' is found, but the package providing it has not made it executable"
34
39
else
@@ -42,7 +47,7 @@ do-run() {
42
47
local bin_file=" $BASALT_LOCAL_PROJECT_DIR /.basalt/bin/$bin_name "
43
48
if [ -f " $bin_file " ] && [ -x " $bin_file " ]; then
44
49
util.deinit
45
- exec " $bin_file "
50
+ exec " $bin_file " " $@ "
46
51
elif [ -f " $bin_file " ]; then
47
52
bprint.die " File '$bin_name ' is found, but the package providing it has not made it executable"
48
53
else
You can’t perform that action at this time.
0 commit comments