1
0
Fork 0

Compare commits

..

No commits in common. "d7d4d47814f2f62112918bfa3df3c9fa2d117de8" and "f5b24fbd72f68a6546299ca5c89626007c9afba7" have entirely different histories.

2 changed files with 1 additions and 7 deletions

View file

@ -67,7 +67,7 @@ def open_bang(config, handle, query):
else:
print("Unknown handle.")
return
url = bang["url"].format(urllib.parse.quote(query.strip()))
url = bang["url"].format(urllib.parse.quote(query))
webbrowser.open_new_tab(url)

View file

@ -20,12 +20,6 @@ usage() {
CONFIG_PATH="$HOME/.config/upload-text.conf"
[ -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.
BASENAME="$(basename "$1")"
HTML_FILE="$(mktemp)"