Sometimes I can be so dumb

This commit is contained in:
Archie Hilton (thytom) 2019-11-06 15:38:53 +00:00
parent 74919c4d9c
commit c902c352f3

2
bar.sh
View file

@ -55,7 +55,7 @@ run_module()
run() run()
{ {
for module in $MODULES; do for module in $MODULES; do
[[ ! -f "$OUTPUT_CACHE$module" ]] && echo "$OUTPUT_CACHE$module" [[ ! -f "$OUTPUT_CACHE$module" ]] && touch "$OUTPUT_CACHE$module"
pgrep $module &> /dev/null pgrep $module &> /dev/null
notrunning=$([[ $? -eq 1 ]]) notrunning=$([[ $? -eq 1 ]])
if $notrunning && [[ $INTERNET -eq 0 ]]; then if $notrunning && [[ $INTERNET -eq 0 ]]; then