readwwwlog: Remove trailing slash
This commit is contained in:
parent
88226b592c
commit
915c6a7cda
|
@ -21,6 +21,7 @@ local default_cmd="firefox"
|
|||
local termopts=""
|
||||
|
||||
for url in ${urls}; do
|
||||
[[ ${url[-1]} == "/" ]] && url=${url[1,-2]} # Remove trailing slash (safe?)
|
||||
local id=${url##*/} # Most paste services have the ID as the last element
|
||||
|
||||
if [[ ${url} =~ 'dpaste\.com' && ! ${url[-4,-1]} == ".txt" ]]; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user