dotfiles/.local/share/scripts/wgetbb.sh

7 lines
196 B
Bash
Executable file

#!/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"