about summary refs log tree commit diff
path: root/bin/svtree-run
diff options
context:
space:
mode:
Diffstat (limited to 'bin/svtree-run')
-rwxr-xr-xbin/svtree-run6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/svtree-run b/bin/svtree-run
index a4c2876..05cd16e 100755
--- a/bin/svtree-run
+++ b/bin/svtree-run
@@ -40,7 +40,7 @@ background {
 	fdmove -c 4 2
 	redirfd -wnb 2 ${SCAN_DIR}/s6-svscan-log/fifo
 	fdmove -c 1 2
-
+	
 	# TODO: why do we need this?
 	execline-cd ${HOME}
 
@@ -49,10 +49,10 @@ background {
 }
 
 # setup s6-rc
-foreground { s6-rc-init -c ${COMPILED_DIR} -l ${LIVE_DIR} -d -- ${SCAN_DIR} }
+if { s6-rc-init -c ${COMPILED_DIR} -l ${LIVE_DIR} -d -- ${SCAN_DIR} }
 
 # launch default target
-foreground { s6-rc -v2 -l ${LIVE_DIR} -pu change default }
+if { s6-rc -v2 -l ${LIVE_DIR} -pu change default }
 
 # block on s6
 importas -i scanpid !