From 251a23d2f1e7aabe1342e6e32254972bed1851c2 Mon Sep 17 00:00:00 2001 From: tobi-wan-kenobi Date: Mon, 30 Mar 2020 20:56:35 +0200 Subject: [PATCH] [modules/shell] double quotes -> single quotes --- modules/contrib/shell.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/contrib/shell.py b/modules/contrib/shell.py index 038e519..1fa74f1 100644 --- a/modules/contrib/shell.py +++ b/modules/contrib/shell.py @@ -3,8 +3,8 @@ """ Execute command in shell and print result Few command examples: - 'ping 1.1.1.1 -c 1 | grep -Po "(?<=time=)\d+(\.\d+)? ms"' - 'echo "BTC=$(curl -s rate.sx/1BTC | grep -Po \"^\d+\")USD"' + 'ping 1.1.1.1 -c 1 | grep -Po '(?<=time=)\d+(\.\d+)? ms'' + 'echo 'BTC=$(curl -s rate.sx/1BTC | grep -Po \'^\d+\')USD'' 'curl -s https://wttr.in/London?format=%l+%t+%h+%w' 'pip3 freeze | wc -l' 'any_custom_script.sh | grep arguments' @@ -12,8 +12,8 @@ Few command examples: Parameters: * shell.command: Command to execute Use single parentheses if evaluating anything inside (sh-style) - For example shell.command='echo $(date +"%H:%M:%S")' - But NOT shell.command="echo $(date +'%H:%M:%S')" + For example shell.command='echo $(date +'%H:%M:%S')' + But NOT shell.command='echo $(date +'%H:%M:%S')' Second one will be evaluated only once at startup * shell.interval: Update interval in seconds (defaults to 1s == every bumblebee-status update)