aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArchie Hilton <archie.hilton1@gmail.com>2019-10-26 16:28:07 +0100
committerGitHub <noreply@github.com>2019-10-26 16:28:07 +0100
commitf39d667cb029592ed69ea35cb5069c3ea2fb7fb2 (patch)
treeaa15979305a8e4030feef6732e86eb3ef788d89f
parent3562a69c232437d77f316145a95e2844882f9c74 (diff)
parent04a371f4b3843c765b937ddd96a3d96975db88e1 (diff)
Merge pull request #7 from thytom/internet_fix
Fix for internet module.
-rwxr-xr-xbar.sh10
-rwxr-xr-xmodules/internetbin16536 -> 16536 bytes
-rw-r--r--modules/src/internet.c2
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 6fe6aec..22cbd6a 100755
--- a/modules/internet
+++ b/modules/internet
Binary files differ
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);