From 18b3b51ec7093e1da86eea88eb39bf7b3e681201 Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Wed, 3 Apr 2019 18:14:22 +0200 Subject: [PATCH] fix multiple local --- bashbot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bashbot.sh b/bashbot.sh index 2dcc84e..1baa93e 100755 --- a/bashbot.sh +++ b/bashbot.sh @@ -10,7 +10,7 @@ # This file is public domain in the USA and all free countries. # Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying) # -#### $$VERSION$$ v0.6-dev-3-g614eae8 +#### $$VERSION$$ v0.6-dev-4-gb4e13bd # # Exit Codes: # - 0 sucess (hopefully) @@ -113,7 +113,7 @@ urlencode() { send_message() { - local chat, text, arg, keyboard, file, lat long, title, adress, sent + local chat text arg keyboard file lat long title adress sent [ "$2" = "" ] && return 1 chat="$1" text="$(echo "$2" | sed 's/ mykeyboardstartshere.*//g;s/ myfilelocationstartshere.*//g;s/ mylatstartshere.*//g;s/ mylongstartshere.*//g;s/ mytitlestartshere.*//g;s/ myaddressstartshere.*//g;s/ mykeyboardendshere.*//g')"