Created
September 3, 2020 11:44
-
-
Save alephalpha0/1f7156fe5a79a88272e98d9539fbde40 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/data/data/com.termux/files/usr/bin/bash | |
# 2020-09-03 :: alephalpha0@rootofpi.me | |
############################################ | |
# script to take urls shared to termux from | |
# android, and download the page. main use | |
# in my eyes is downloading raw files from | |
# github. | |
############################################ | |
URL=$1 | |
#sets URL to the url shared/passed to termux | |
DIR=~/downloads/wget | |
# the download dir | |
FILE=wget.`date +"%Y%m%d"` | |
# the file to download into | |
cd $DIR | |
wget --show-progress $URL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment