aboutsummaryrefslogtreecommitdiff
path: root/bar.sh
diff options
context:
space:
mode:
authorArchie Hilton (thytom) <archie.hilton1@gmail.com>2019-11-01 18:36:07 +0000
committerArchie Hilton (thytom) <archie.hilton1@gmail.com>2019-11-01 18:36:07 +0000
commit15dc3c709fb7138f3402f872634a2e3d0dc9bd60 (patch)
treea94c8ed37d96224ce22e8208e39d50e96dc2c93e /bar.sh
parent1ee52f23d35389d892af8b9836a237acbf93d7b8 (diff)
Removed debugging messages
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;
}