Skip to content

Commit

Permalink
Create termux-url-opener
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudxain authored May 13, 2024
1 parent f79a231 commit 1d4c7b1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/termux-url-opener
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
# according to `curlrc`,
# the filename should be inferred from URL,
# so no need for `basename`
curl -o "$HOME/downloads/$(basename -- "$1")" -- "$1"

0 comments on commit 1d4c7b1

Please sign in to comment.