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

8 lines
196 B
Bash
Raw Permalink Normal View History

2023-10-02 10:53:43 +01:00
#!/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"