@@ -20,14 +20,14 @@ do_set() {
20
20
# -------------------------- set ------------------------- #
21
21
# Source category pre
22
22
if [ -f " $db_dir /$category /set-pre.sh" ]; then
23
- if ! sh " $db_dir /$category /set-pre.sh" " $db_dir /$category " " $program " ; then
23
+ if ! sh -e " $db_dir /$category /set-pre.sh" " $db_dir /$category " " $program " ; then
24
24
return 1
25
25
fi
26
26
fi
27
27
28
28
# Source program pre
29
29
if [ -f " $db_dir /$category /$program /set-pre.sh" ]; then
30
- if ! sh " $db_dir /$category /$program /set-pre.sh" " $db_dir /$category " " $program " ; then
30
+ if ! sh -e " $db_dir /$category /$program /set-pre.sh" " $db_dir /$category " " $program " ; then
31
31
return 1
32
32
fi
33
33
fi
@@ -37,14 +37,14 @@ do_set() {
37
37
38
38
# Source program post
39
39
if [ -f " $db_dir /$category /$program /set-post.sh" ]; then
40
- if ! sh " $db_dir /$category /$program /set-post.sh" " $db_dir /$category " " $program " ; then
40
+ if ! sh -e " $db_dir /$category /$program /set-post.sh" " $db_dir /$category " " $program " ; then
41
41
return 1
42
42
fi
43
43
fi
44
44
45
45
# Source category post
46
46
if [ -f " $db_dir /$category /set-post.sh" ]; then
47
- if ! sh " $db_dir /$category /set-post.sh" " $db_dir /$category " " $program " ; then
47
+ if ! sh -e " $db_dir /$category /set-post.sh" " $db_dir /$category " " $program " ; then
48
48
return 1
49
49
fi
50
50
fi
@@ -77,22 +77,22 @@ do_launch() {
77
77
# ------------------------ launch ------------------------ #
78
78
# Source category pre
79
79
if [ -f " $db_dir /$category /launch-pre.sh" ]; then
80
- if ! sh " $db_dir /$category /launch-pre.sh" " $db_dir /$category " " $program " ; then
80
+ if ! sh -e " $db_dir /$category /launch-pre.sh" " $db_dir /$category " " $program " ; then
81
81
return 1
82
82
fi
83
83
fi
84
84
85
85
# Source program pre
86
86
if [ -f " $db_dir /$category /$program /launch-pre.sh" ]; then
87
- if ! sh " $db_dir /$category /$program /launch-pre.sh" " $db_dir /$category " " $program " ; then
87
+ if ! sh -e " $db_dir /$category /$program /launch-pre.sh" " $db_dir /$category " " $program " ; then
88
88
return 1
89
89
fi
90
90
fi
91
91
92
92
# Source launch if it exists. If otherwise, infer
93
93
# the launch command from the program name
94
94
if [ -f " $db_dir /$category /$program /launch.sh" ]; then
95
- if ! sh " $db_dir /$category /$program /launch.sh" " $db_dir /$category " " $program " ; then
95
+ if ! sh -e " $db_dir /$category /$program /launch.sh" " $db_dir /$category " " $program " ; then
96
96
log.die " $gui " " Source failed" # TODO: fix error message
97
97
fi
98
98
else
@@ -101,14 +101,14 @@ do_launch() {
101
101
102
102
# Source program post
103
103
if [ -f " $db_dir /$category /$program /launch-post.sh" ]; then
104
- if ! sh " $db_dir /$category /$program /launch-post.sh" " $db_dir /$category " " $program " ; then
104
+ if ! sh -e " $db_dir /$category /$program /launch-post.sh" " $db_dir /$category " " $program " ; then
105
105
return 1
106
106
fi
107
107
fi
108
108
109
109
# Source category post
110
110
if [ -f " $db_dir /$category /launch-post.sh" ]; then
111
- if ! sh " $db_dir /$category /launch-post.sh" " $db_dir /$category " " $program " ; then
111
+ if ! sh -e " $db_dir /$category /launch-post.sh" " $db_dir /$category " " $program " ; then
112
112
return 1
113
113
fi
114
114
fi
0 commit comments