File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
2+
23# Copyright (C) 2015 Nhoya.
34#
45# z0r is free software: you can redistribute it and/or modify
@@ -22,7 +23,7 @@ readonly YELLOW="\033[00;33m"
2223readonly BOLD=" \033[01m"
2324readonly FINE=" \033[0m"
2425
25- ver=' v1.7.2 '
26+ ver=' v1.7.3 '
2627regex=' (https?|ftp|file)://[-A-Za-z0-9\+&@#/%?=~_|!:,.;]*\.[A-Za-z0-9\+&@%#/=~_|():?]+'
2728is_z0r=' http://z0r.it/[^ \n]'
2829url=(http://$1 )
@@ -31,9 +32,9 @@ dep=(curl awk xclip wget)
3132apikey=4e4b657a91
3233clip=$( xclip -o 2> /dev/null)
3334LOGDIR=/$HOME /.z0r_logs
34- url_e=$( echo " $1 " | sed ' s/?/%3F/' )
3535# upload function (long -> short)
3636shr (){
37+ url_e=$( echo $1 | sed ' s/?/%3F/' )
3738 short=$( curl $mode -L " http://z0r.it/yourls-api.php?signature=$apikey &action=shorturl&title=uploaded_with_z0r_script&keyword=$2 &format=simply&url=$url_e " | awk -F ' /' ' {print$NF}' )
3839 uc=" http://z0r.it/$short "
3940 if [ -n " $short " ]; then
@@ -205,8 +206,7 @@ if [ "$missing" == "1" ]; then
205206fi
206207opsparser $@
207208if [ " $# " == " 0" ]; then
208- set -- " $clip "
209- is_url $1
209+ is_url $clip
210210else
211211 is_url $1 $2
212212fi
You can’t perform that action at this time.
0 commit comments