From 775a72f204ab38d43e317a9755fade8e35af1302 Mon Sep 17 00:00:00 2001 From: tiago Date: Mon, 2 Oct 2023 10:53:43 +0100 Subject: [PATCH] added misc scripts --- .config/scripts/wgetbb.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 .config/scripts/wgetbb.sh diff --git a/.config/scripts/wgetbb.sh b/.config/scripts/wgetbb.sh new file mode 100755 index 0000000..149b46a --- /dev/null +++ b/.config/scripts/wgetbb.sh @@ -0,0 +1,7 @@ +#!/usr/bin/bash + +creds=~/.bb-creds +username=$(awk -F '=' '/username/ {print $2}' $creds) +password=$(awk -F '=' '/password/ {print $2}' $creds) + +wget --user="$username" --password="$password" "$1"