@@ -20,14 +20,14 @@ do_set() {
2020 # -------------------------- set ------------------------- #
2121 # Source category pre
2222 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
2424 return 1
2525 fi
2626 fi
2727
2828 # Source program pre
2929 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
3131 return 1
3232 fi
3333 fi
@@ -37,14 +37,14 @@ do_set() {
3737
3838 # Source program post
3939 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
4141 return 1
4242 fi
4343 fi
4444
4545 # Source category post
4646 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
4848 return 1
4949 fi
5050 fi
@@ -77,22 +77,22 @@ do_launch() {
7777 # ------------------------ launch ------------------------ #
7878 # Source category pre
7979 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
8181 return 1
8282 fi
8383 fi
8484
8585 # Source program pre
8686 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
8888 return 1
8989 fi
9090 fi
9191
9292 # Source launch if it exists. If otherwise, infer
9393 # the launch command from the program name
9494 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
9696 log.die " $gui " " Source failed" # TODO: fix error message
9797 fi
9898 else
@@ -101,14 +101,14 @@ do_launch() {
101101
102102 # Source program post
103103 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
105105 return 1
106106 fi
107107 fi
108108
109109 # Source category post
110110 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
112112 return 1
113113 fi
114114 fi
0 commit comments