forked from axiom-team/astrXbian
tolower
This commit is contained in:
parent
0064b10b07
commit
40e12d9363
|
@ -36,7 +36,7 @@ TITLE="${file%.*}"
|
|||
[[ -f ~/.zen/ipfs/.$IPFSNODEID/G1SSB/_g1.gchange_title ]] && XZUID=$(cat ~/.zen/ipfs/.$IPFSNODEID/G1SSB/_g1.gchange_title) || XZUID=$(hostname)
|
||||
[[ ! $(echo "$path" | cut -d '/' -f 4 | grep 'astroport') ]] && echo "Fichiers à placer dans ~/astroport/ MERCI" && exit 1
|
||||
TYPE=$(echo "$path" | cut -d '/' -f 5 ) # ex: /home/$YOU/astroport/... film, youtube, mp3
|
||||
CAT=$(echo "$TYPE" | awk '{ print tolowper($0) }')
|
||||
CAT=$(echo "$TYPE" | awk '{ print tolower($0) }')
|
||||
[[ ! $CAT ]] && echo "CAT est le 6e champs de $path" && exit 1
|
||||
|
||||
PREFIX=$(echo "$TYPE" | head -c 1 | awk '{ print toupper($0) }' ) # ex: F, Y, M
|
||||
|
|
Loading…
Reference in New Issue