aboutsummaryrefslogtreecommitdiff
path: root/bar.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bar.sh')
-rwxr-xr-xbar.sh21
1 files changed, 12 insertions, 9 deletions
diff --git a/bar.sh b/bar.sh
index 1955ee7..0614c09 100755
--- a/bar.sh
+++ b/bar.sh
@@ -51,15 +51,18 @@ run_module()
run()
{
- for module in $MODULES; do
- pgrep $module &> /dev/null
- notrunning=$([[ $? -eq 1 ]])
- if $notrunning && [[ $INTERNET -eq 0 ]]; then
- run_module $module
- elif $notrunning && [[ $INTERNET -eq 1 ]]; then
- [[ "$ONLINE_MODULES" != *"$module"* ]] && run_module $module
- fi
- done
+ # for module in $MODULES; do
+ # pgrep $module &> /dev/null
+ # notrunning=$([[ $? -eq 1 ]])
+ # if $notrunning && [[ $INTERNET -eq 0 ]]; then
+ # run_module $module
+ # elif $notrunning && [[ $INTERNET -eq 1 ]]; then
+ # [[ "$ONLINE_MODULES" != *"$module"* ]] && run_module $module
+ # fi
+ # done
+
+ parallel $MODULES_DIR{} ::: $MODULES
+
get_bar
sleep $DELAY;
}