Compare commits
No commits in common. "d7d4d47814f2f62112918bfa3df3c9fa2d117de8" and "f5b24fbd72f68a6546299ca5c89626007c9afba7" have entirely different histories.
d7d4d47814
...
f5b24fbd72
|
@ -67,7 +67,7 @@ def open_bang(config, handle, query):
|
||||||
else:
|
else:
|
||||||
print("Unknown handle.")
|
print("Unknown handle.")
|
||||||
return
|
return
|
||||||
url = bang["url"].format(urllib.parse.quote(query.strip()))
|
url = bang["url"].format(urllib.parse.quote(query))
|
||||||
webbrowser.open_new_tab(url)
|
webbrowser.open_new_tab(url)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -20,12 +20,6 @@ usage() {
|
||||||
CONFIG_PATH="$HOME/.config/upload-text.conf"
|
CONFIG_PATH="$HOME/.config/upload-text.conf"
|
||||||
[ -f "$CONFIG_PATH" ] && . "$CONFIG_PATH"
|
[ -f "$CONFIG_PATH" ] && . "$CONFIG_PATH"
|
||||||
|
|
||||||
# Check for our environment variables.
|
|
||||||
if [ ! -v REMOTE_DEST ] || [ ! -v REMOTE_WWW ] || [ ! -v REMOTE_URL ]; then
|
|
||||||
echo "You need to provide all the required environment variables."
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Generate a simple HTML page from the content.
|
# Generate a simple HTML page from the content.
|
||||||
BASENAME="$(basename "$1")"
|
BASENAME="$(basename "$1")"
|
||||||
HTML_FILE="$(mktemp)"
|
HTML_FILE="$(mktemp)"
|
||||||
|
|
Loading…
Reference in a new issue