From 04a371f4b3843c765b937ddd96a3d96975db88e1 Mon Sep 17 00:00:00 2001 From: "Archie Hilton (thytom)" Date: Sat, 26 Oct 2019 16:26:44 +0100 Subject: [PATCH] Fix for internet module. Internet module was not being loaded correctly. Also had spacing issues. --- bar.sh | 10 +++++----- modules/internet | Bin 16536 -> 16536 bytes modules/src/internet.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bar.sh b/bar.sh index 1055177..ca7df84 100755 --- a/bar.sh +++ b/bar.sh @@ -53,12 +53,12 @@ run_module() { if [[ -f "$CUSTOM_DIR$1" ]] then - out="$(exec $CUSTOM_DIR$1)" + out="$($CUSTOM_DIR$1)" else - out="$(exec $MODULES_DIR$1)" + out="$($MODULES_DIR$1)" fi - [[ ! "$out" = "" ]] && [[ ! "$module" = "NULL" ]] && out="$out$SEPARATOR." + [[ ! "$out" = "" ]] && out="$out$SEPARATOR." echo "$out" > "$OUTPUT_CACHE$module" } @@ -67,10 +67,10 @@ run() get_internet for module in $MODULES; do pgrep $module &> /dev/null - if [[ $INTERNET -eq 0 ]] && [[ $? -eq 1 ]]; then + if [[ $? -eq 1 ]] && [[ $INTERNET -eq 0 ]]; then run_module $module & else - [[ $ONLINE_MODULES != *"$module"* ]] && run_module $module + [[ "$ONLINE_MODULES" != *"$module"* ]] && run_module $module fi done get_bar diff --git a/modules/internet b/modules/internet index 6fe6aec66207af99205414b77c71dde9c36e05cc..22cbd6a7cbfb2b375f62e3c47a8aec4bfb117b55 100755 GIT binary patch delta 152 zcmbQy$T*{saRUdFAddnA7{KYtl1#frG{P_6HM*j1Y9sw+k4w}qt7o1zDw|(0$;+C7 zl`~2+TN?niu>!HkhyVXmfV2sa_5sqmAOHXF0n#BrdJT|10;IoewpExc$jGz#qG3K0 Yka9Hn&cVnz+0s^@6K?P3LR)oa0K3gB(*OVf delta 152 zcmbQy$T*{saRUdFAcq127{KYtl1#fr&ZzDT&oOa5ai(9{a*Nh(C+pDihRrXST|;F-CSs^&I|zVe=Lvy diff --git a/modules/src/internet.c b/modules/src/internet.c index d0f6afd..916445b 100644 --- a/modules/src/internet.c +++ b/modules/src/internet.c @@ -2,7 +2,7 @@ int main() { - char *internet_icon = ""; + char *internet_icon = " "; printf("%s\n", internet_icon);