mirror of https://framagit.org/kyodev/kyopages.git
maj
This commit is contained in:
parent
7df84ab417
commit
e0945e9a48
|
@ -1,6 +1,6 @@
|
||||||
# getInfo
|
# getInfo
|
||||||
|
|
||||||
![version: 4.9.0](https://img.shields.io/badge/version-4.9.0-blue.svg?longCache=true&style=for-the-badge)
|
![version: 4.9.1](https://img.shields.io/badge/version-4.9.1-blue.svg?longCache=true&style=for-the-badge)
|
||||||
![bash langage](https://img.shields.io/badge/bash-4-brightgreen.svg?longCache=true&style=for-the-badge)
|
![bash langage](https://img.shields.io/badge/bash-4-brightgreen.svg?longCache=true&style=for-the-badge)
|
||||||
![license LPRAB / WTFPL](https://img.shields.io/badge/license-LPRAB%20%2F%20WTFPL-blue.svg?longCache=true&style=for-the-badge)
|
![license LPRAB / WTFPL](https://img.shields.io/badge/license-LPRAB%20%2F%20WTFPL-blue.svg?longCache=true&style=for-the-badge)
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
# ipupdate
|
# ipupdate
|
||||||
|
|
||||||
![version: 1.4.0](https://img.shields.io/badge/version-1.4.0-blue.svg?longCache=true&style=for-the-badge)
|
![version: 1.4.1](https://img.shields.io/badge/version-1.4.1-blue.svg?longCache=true&style=for-the-badge)
|
||||||
![bash langage](https://img.shields.io/badge/bash-version4-brightgreen.svg)
|
![bash langage](https://img.shields.io/badge/bash-4-brightgreen.svg?longCache=true&style=for-the-badge)
|
||||||
![license LPRAB / WTFPL](https://img.shields.io/badge/license-LPRAB%20%2F%20WTFPL-blue.svg)
|
![license LPRAB / WTFPL](https://img.shields.io/badge/license-LPRAB%20%2F%20WTFPL-blue.svg?longCache=true&style=for-the-badge)
|
||||||
|
|
||||||
|
|
||||||
## client DNS dynamique, ipv4, ipv6
|
## client DNS dynamique, ipv4, ipv6
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
# pastit
|
# pastit
|
||||||
|
|
||||||
![version: 0.3.1](https://img.shields.io/badge/version-0.3.1-blue.svg?longCache=true&style=for-the-badge)
|
![version: 0.4.0](https://img.shields.io/badge/version-0.4.0-blue.svg?longCache=true&style=for-the-badge)
|
||||||
![bash langage](https://img.shields.io/badge/bash-version4-brightgreen.svg)
|
![bash langage](https://img.shields.io/badge/bash-4-brightgreen.svg?longCache=true&style=for-the-badge)
|
||||||
![license LPRAB / WTFPL](https://img.shields.io/badge/license-LPRAB%20%2F%20WTFPL-blue.svg)
|
![license LPRAB / WTFPL](https://img.shields.io/badge/license-LPRAB%20%2F%20WTFPL-blue.svg?longCache=true&style=for-the-badge)
|
||||||
|
|
||||||
|
|
||||||
## chargement et lancement du script:
|
## chargement et lancement du script:
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
# SC2016 Expressions don't expand in single quotes
|
# SC2016 Expressions don't expand in single quotes
|
||||||
# SC2009 Consider using pgrep instead of grepping ps output
|
# SC2009 Consider using pgrep instead of grepping ps output
|
||||||
|
|
||||||
version=4.9.0
|
version=4.9.1
|
||||||
date="20/06/2018"
|
date="20/06/2018"
|
||||||
script="getInfo"
|
script="getInfo"
|
||||||
contact="IRC freenode.net ##sdeb@freenode.net ou https://framagit.org/sdeb/getInfo/issues"
|
contact="IRC freenode.net ##sdeb@freenode.net ou https://framagit.org/sdeb/getInfo/issues"
|
||||||
|
@ -4478,13 +4478,13 @@ fipaste_curl_markdownshare(){ # à tester/finir
|
||||||
}
|
}
|
||||||
|
|
||||||
# $1 file to paste, $2 language, [$3="debugPaste" afficher retour paste], requires $pasteDuration
|
# $1 file to paste, $2 language, [$3="debugPaste" afficher retour paste], requires $pasteDuration
|
||||||
fipaste_pastery(){ # 20/06/2018-2
|
fipaste_pastery(){ # 20/06/2018-3
|
||||||
local title language="$2" pasted csv id pastebin='pastery.net'
|
local title language="$2" pasted csv id pastebin='pastery.net'
|
||||||
|
|
||||||
type -t f__info &>/dev/null && c_echo="f__info" || c_echo="echo -e" # f__info existe? sinon echo
|
type -t f__info &>/dev/null && c_echo="f__info" || c_echo="echo -e" # f__info existe? sinon echo
|
||||||
[ ! -e "$1" ] && c_echo "fichier $1 inexistant"
|
[ ! -e "$1" ] && c_echo "fichier $1 inexistant"
|
||||||
type -t f__basedirname &>/dev/null && f__basedirname "$1"
|
type -t f__basedirname &>/dev/null && f__basedirname "$1"
|
||||||
basename=${basename:""}
|
[ -z "$basename" ] && basename=""
|
||||||
[ "$basename" ] && title="$basename-${script}_$version" || title="${script}_$version"
|
[ "$basename" ] && title="$basename-${script}_$version" || title="${script}_$version"
|
||||||
[ "$language" == 'auto' ] && language='autodetect'
|
[ "$language" == 'auto' ] && language='autodetect'
|
||||||
# un fichier simple curl https://www.pastery.net/api/paste/ -F file=@data.txt
|
# un fichier simple curl https://www.pastery.net/api/paste/ -F file=@data.txt
|
||||||
|
@ -4492,7 +4492,7 @@ fipaste_pastery(){ # 20/06/2018-2
|
||||||
if [[ $pasted =~ \<title\>(.*5[0-9].*error.*)\</title\> ]]; then
|
if [[ $pasted =~ \<title\>(.*5[0-9].*error.*)\</title\> ]]; then
|
||||||
$c_echo "$RED"" Erreur export sur $pastebin:$STD \\n ${BASH_REMATCH[1]}"
|
$c_echo "$RED"" Erreur export sur $pastebin:$STD \\n ${BASH_REMATCH[1]}"
|
||||||
elif [[ $pasted =~ \"result\":\ \"error ]]; then
|
elif [[ $pasted =~ \"result\":\ \"error ]]; then
|
||||||
$c_echo "$RED"" Erreur export sur $pastebin:$STD \\n $pasted"
|
$c_echo "$RED"" Erreur export sur $pastebin:$STD \\n $( file -b "$1" ) \\n $pasted"
|
||||||
else
|
else
|
||||||
IFS=', ' read -r -a csv <<< "$pasted"
|
IFS=', ' read -r -a csv <<< "$pasted"
|
||||||
id=${csv[1]%\"}
|
id=${csv[1]%\"}
|
||||||
|
|
Loading…
Reference in New Issue